View Single Post
Old 05-12-2004, 01:58 AM   #6 (permalink)
Latch
In Your Dreams
 
Latch's Avatar
 
Location: City of Lights
set permissions on files only:
Code:
find . -type f -exec chmod 0644 {} \;
set permissions on dirs only:
Code:
find . -type d -exec chmod 0755 {} \;

recursively set permissions on something depending on if it's a file or a directory (note: chmod -R 0755 would make EVERYTHING (files AND directories) 755.. I don't want that).

Of course that can be changed to chown or pretty much anything you want hehe..

I have some other scripts, but they're only relevant for work..
Latch is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62