Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Tips and Tricks _ Howto Change Permissions On Directories Only

Posted by: ubivis Jan 19 2004, 04:47 AM

A friend of mine figure out how to change the permissions on only directories.

It was usefull for what I needed, so in case anyone else needs to do this:

chmod 655 `ls -AFR | grep : | tr -s ':n' 'n'`

I don't know if this is the most efficient way of doing it but it works.

Posted by: Pronco Jul 4 2004, 08:01 PM

What did you mean by Changing permissions to the Directory?

did you mean when you type this current command it will change the attributes of all the directories and when any built-in user in the system type ls in any directory the permission denied message will appears.

Posted by: Pronco Jul 6 2004, 01:42 PM

Waiting for Response

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)