User Tools

Site Tools


ops102:permissions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ops102:permissions [2024/05/28 17:23] – [Setting Permissions] chrisops102:permissions [2024/05/28 21:27] (current) – external edit 127.0.0.1
Line 261: Line 261:
 === Recursively Setting Permissions === === Recursively Setting Permissions ===
  
-It is sometimes useful to use the chmod ''-r'' option to recursively set all the permissions on a directory and all of its contents. However, it is quite common to need to set execute permissions on directories but not on files. You can indicate this to ''chmod'' using a capital X for the execute permission.+It is sometimes useful to use the chmod ''-R'' option to recursively set all the permissions on a directory and all of its contents. However, it is quite common to need to set execute permissions on directories but not on files. You can indicate this to ''chmod'' using a capital X for the execute permission.
  
   # Don't do this! It will set Execute permission on files and directories.   # Don't do this! It will set Execute permission on files and directories.
-  chmod -go+rx publicdir+  chmod -go+rx publicdir
      
   # Instead, do this: it will set Execute permission on directories only, and not on files   # Instead, do this: it will set Execute permission on directories only, and not on files
   # (Notice the capital X in the symbolic permissions)   # (Notice the capital X in the symbolic permissions)
-  chmod -go+rX publicdir+  chmod -go+rX publicdir
  
 +=== Other useful chmod Options ===
 +
 +<code>
 +  -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)</code>
  
 ====  Controlling Permissions on New Files and Directories  ==== ====  Controlling Permissions on New Files and Directories  ====
ops102/permissions.1716917000.txt.gz · Last modified: 2024/05/28 21:23 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki