RE: chmod-ing a directory tree without effecting files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I need to chmod a directory tree to change the permissions on the 
> directories but not the files they contain.
> 
> Is there a way to do this with chmod or another tool?

You can try piping the output of find into the xargs command. For example,

find /home/chadws/mythtv -type d | xargs chmod 2775


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux