sorry, I forgot to reply to all.

for directorys, you can use:
chmod 755 */

if the files have a suffix. you can use
chmod 644 *.*

for the files don't have the suffix, I guess a regex should solve it.
But I'm not familiar with regex. :-)

On 5/7/08, Catalin Miclaus <[EMAIL PROTECTED]> wrote:
> -----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]"
>


-- 
Regards,
Wang Yi
_______________________________________________
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