![]() |
Understanding chmod |
chmod Basics
chmod = change file modes
Permissions | Owner | Group | Others |
chmod 777 | rwx | rwx | rwx |
chmod 666 | rw- | rw- | rw- |
chmod 555 | r-x | r-x | r-x |
chmod 444 | r-- | r-- | r-- |
chmod 333 | -wx | -wx | -wx |
chmod 222 | -w- | -w- | -w- |
chmod 111 | --x | --x | --x |
chmod 000 | --- | --- | --- |
After chmoding a file you can use ls -l to view the permissions.
Using the above chart you can combine permissions.
chmod 644 = rw-r--r--
chmod 731 = rwx-wx--x
Owner = user that created the file
Group = users in the same group as owner
Others = the rest of the users on the system
Using the above chart you can combine permissions.
chmod 644 = rw-r--r--
chmod 731 = rwx-wx--x
Owner = user that created the file
Group = users in the same group as owner
Others = the rest of the users on the system
ConversionConversion EmoticonEmoticon