Weird and Sudden permissions problem

Peter L. Peres plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Sat Mar 27 08:35:46 UTC 2004


One-liners to change directory and file permissions to sane values under a
tree. To change ownership of both files and directories recursively (you
may have to be root to run these commands, especially the first one):

chown -R user.group ./here

make directories browsable:

find ./here -type d -exec chmod +rx {} \;

make files readable:

find ./here -type f -exec chmod +r {} \;

You can change +rx and +r to more liberal values if you want.

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list