It appears you have not registered with our community. To register please click here ...

Author Topic: Help changing permissions in linux  (Read 1171 times)

ctwjr

  • Super Moderator
  • Jr. Member
  • **
  • Posts: 72
  • Karma: +10/-0
    • View Profile
    • http://www.ftplive.com
    • Email
Help changing permissions in linux
« on: December 08, 2005, 08:54:02 PM »
I have a program that instructs me to change file permissions on certain files and directories.  Some need to be 755 and some 777.  Can someone tell me the best way to do this?

Thanks

adb22791

  • Former Moderator
  • Full Member
  • ***
  • Posts: 149
  • Karma: +10/-0
    • ICQ Messenger - 226098809
    • View Profile
    • Email
Help changing permissions in linux
« Reply #1 on: December 08, 2005, 09:00:24 PM »
Sure...

From this guide:
Quote
The chmod command allows you to set the permissions of a file or directory. It recognises three letters that mean who you want to set the permissions for;

chmod u  - for user (that means you!)
chmod g  - for group (e.g. CSAI)
chmod a  - for all (the whole world)

Then you tell it whether to add or takeaway permissions for those people;

chmod u+x  - to make a file executable for you
chmod a+x  - to make a file executable for the whole world

chmod u+r  - to make a file readable for you
chmod a+r  - to make a file readable for the whole world i.e. \'world readable\'



Chmod 755 means:
-Owner can read, write, and execute
-Groups can Read and Execute
-Public can Read and Execute

Chmod 777 means:
-Owner can read, write, and execute
-Groups can read, write, and execute
-Public can read, write, and execute

If you don\'t want to use the SSH chmod command, you can use most FTP programs to chmod something.
-Alex

ctwjr

  • Super Moderator
  • Jr. Member
  • **
  • Posts: 72
  • Karma: +10/-0
    • View Profile
    • http://www.ftplive.com
    • Email
Help changing permissions in linux
« Reply #2 on: December 14, 2005, 11:28:33 AM »
Thanks a lot!  chmod is just what I needed  :D

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
359 Views
Last post November 06, 2005, 03:40:39 PM
by Linux News
0 Replies
270 Views
Last post December 02, 2005, 08:52:01 AM
by Linux News
3 Replies
1125 Views
Last post February 04, 2006, 10:21:52 AM
by dynaweb
1 Replies
1403 Views
Last post October 28, 2006, 07:18:01 AM
by dynaweb
2 Replies
1514 Views
Last post March 12, 2007, 08:17:31 PM
by zelo