chmod to only change permissions of directories
Hello everyone.
I am in need of a command (or even shell or perl script) that will allow me to recursively (-R) change the permissions on only directories, leaving existing regular file permissions alone. I will also need to then change only the file permissions, leaving the directory permissions in place.
In the end, I will need to list (ls) only directories, and then only files.
My need for this is to change all directory permissions to 755, while changing all files to 555 within a large directory structure (in a Linux and HP 11.x environment).
Last edited by lluciano; 08-18-2005 at 12:35 PM.
|