chmod operation on directories / files

Zbigniew Szalbot z.szalbot at lc-words.com
Wed May 7 12:25:08 UTC 2008


Hello,

Baptiste Grenier pisze:

> Using find(1), you can try something like this:
> 
> For files:
>   find /plop -type f -exec chmod 644 '{}' \;
> 
> For dirs:
>   find /plop -type d -exec chmod 755 '{}' \;


I have recieved many helpful replies. Thank you all. The above did the trick for me. I have saved it for future reference!


Thanks!

-- 
Zbigniew Szalbot
www.lc-words.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2864 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080507/8049b430/smime.bin


More information about the freebsd-questions mailing list