[ale] chmod question

Geoffrey esoteric at 3times25.net
Mon Jun 7 12:26:49 EDT 2004


Keith Morris wrote:
> Hello all.
> I have a production samba server that has thousands of files that I need 
> to change permissions on. I would like to change all files to have 
> permissions of 666 as there are no linux executable files there.
> 
> Is there a way to use chmod recursively where it will only change the 
> permissions on the files and not the directories?  chmod -R changes 
> everything thus making the directories non-traversable.

find $DIR -type f -print|xargs chmod .....

> 
> Any suggestions?
> 
> Thanks in advance.
> Keith Morris
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 
> 


-- 
Until later, Geoffrey                     Registered Linux User #108567
Building secure systems in spite of Microsoft



More information about the Ale mailing list