Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

chmod with redhat 9.0 FTP 2

Status
Not open for further replies.
Jun 11, 2003
88
US
hi
does anyone have a list or a link to a good site on how the chmod command works with redhat 9.0.

i know it is based on a 3 digit number but i would like to know what each number does.

also if i want to give one person full access to a folder but i want to give another person only read access to it how would i acomplish that?

peace
david
 
that link helped some. what i also need to be able to do, is have a file where only one person has full access (read, write, execute) but several others can read (and copy) the files and execute them but not write new files to the folder.
what do i need to do to acomplish that?

david
 
A file whith permitions set at 750

the owner will have all the rights:

4 read + 2 write + 1 execute =7

Other users in the same group as the owner will only be authorized to:

4 read + 1 execute =5


All other users wont be able to do anything with that file: 0


If you want to give specifics rights to a specific user you will have to use ACL's. See the acl man pages at:

 
Here is how the numbers work with chmod. Each digit in the number represents User (also called Owner), Group and Other(also called World) reading from right to left. If we assign a value to Read, Write and eXecute such as 4, 2 and 1 respectively, then we could use something like the table below:

| User | Group | Other
---------------------------------------------
Read = 4 | X | X | X
---------------------------------------------
Write = 2 | X | |
---------------------------------------------
Execute = 1 | X | X | X
---------------------------------------------
7 5 5

There is one more bit to the left of these but you can read the man pages to see what they do: "man chmod"

 
I just noticed that I said "reading right to left" when I meant left to right.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top