ops102:permissions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ops102:permissions [2024/05/28 17:19] – chris | ops102:permissions [2024/05/28 21:27] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 258: | Line 258: | ||
| $ ls -l example001 | $ ls -l example001 | ||
| | | ||
| + | |||
| + | === Recursively Setting Permissions === | ||
| + | |||
| + | It is sometimes useful to use the chmod '' | ||
| + | |||
| + | # Don't do this! It will set Execute permission on files and directories. | ||
| + | chmod -R go+rx publicdir | ||
| + | | ||
| + | # Instead, do this: it will set Execute permission on directories only, and not on files | ||
| + | # (Notice the capital X in the symbolic permissions) | ||
| + | chmod -R go+rX publicdir | ||
| + | |||
| + | === Other useful chmod Options === | ||
| + | |||
| + | < | ||
| + | -v Verbose: show information about each file processed (whether changed or not) | ||
| + | -c Changes: show information about each change made (no output for unchanged files)</ | ||
| ==== Controlling Permissions on New Files and Directories | ==== Controlling Permissions on New Files and Directories | ||
ops102/permissions.1716916741.txt.gz · Last modified: 2024/05/28 21:19 (external edit)
