-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zbigniew
Szalbot
Sent: Wednesday, May 07, 2008 12:57 PM
To: freebsd-questions@freebsd.org
Subject: chmod operation on directories / files

Hello,

How do I chmod separately files and directories?

If I use chmod -R 644 then it will go through all the subdirectories 
assigning everything 644 permissions, directories including.

Many thanks!

-- 
Zbigniew Szalbot
www.lc-words.com




find /test -type f -exec chmod 644 {} \;

Replace /test with full path to your directory.
For directories use '-type d'.




Best Regards
Catalin Miclaus
Network/Security ISP-Data
Starcomms Ltd.

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to