10.10.: chmod, file mode bits

Asked by peter

Hello

Where can I find a line-up of the file mode bits which I can use by chmod?

Example: chmod 777 /tmp
                    chmod 440 /etc/sudoers

Where are 777 or 440 described? Thanks in advance.
Peter

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu util-linux Edit question
Assignee:
No assignee Edit question
Solved by:
peter
Solved:
Last query:
Last reply:
Revision history for this message
Ian Ace (iaculallad) said :
#1

Those numbers represents you're sticky bits:

777 gives permissions for all the users to read, write and execute.
440 gives read permission for all Owners and Groups, except Others.

Sample:

440

 r w x

4+0+0 = 4
4+0+0 = 4
0+0+0 = 0

rwx rwx rwx
4 4 0

A more comprehensive chmod tutorial can be found on the net.

HTH.

Revision history for this message
Ian Ace (iaculallad) said :
#2

You can use the command below from your Terminal:

ls -al

HTH.

Revision history for this message
peter (peter-neuweiler) said :
#3

Thanks, Jan.