View previous topic :: View next topic |
Author |
Message |
xante Apprentice
Joined: 23 Aug 2004 Posts: 229
|
Posted: Tue Sep 20, 2005 7:08 pm Post subject: File Permissions: Directories and Files Different. |
|
|
How would I recursivly set directories to u+rwx,og-rwx(700) and files to u+rw,og-rwx(600), without having to do each file/directory individually? |
|
Back to top |
|
|
Dlareh Advocate
Joined: 06 Aug 2005 Posts: 2102
|
Posted: Tue Sep 20, 2005 7:12 pm Post subject: |
|
|
chmod -R 600 /some/path
find /some/path -type d | xargs chmod u+x _________________ "Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet? |
|
Back to top |
|
|
|