46
Here is a list of some common settings, numerical values and their meanings:
(600) — Only the owner has read and write permissions.
•
-rw-------
(644) — Only the owner has read and write permissions; the group and others have
•
-rw-r--r--
read only.
(700) — Only the owner has read, write, and execute permissions.
•
-rwx------
(755) — The owner has read, write, and execute permissions; the group and others
•
-rwxr-xr-x
have only read and execute.
(711) — The owner has read, write, and execute permissions; the group and others
•
-rwx--x--x
have only execute.
(666) — Everyone can read and write to the file. (Be careful with these permissions.)
•
-rw-rw-rw-
(777) — Everyone can read, write, and execute. (Again, this permissions setting can
•
-rwxrwxrwx
be hazardous.)
Here are some common settings for directories:
(700) — Only the user can read, write in this directory.
•
drwx------
(755) — Everyone can read the directory; users and groups have read and execute
•
drwxr-xr-x
permissions.
Chapter 3. Shell Prompt Basics