[ale] chmod question

Christopher Fowler cfowler at outpostsentinel.com
Mon Jun 7 12:27:26 EDT 2004


find /dir -type f -exec chmod 666 {} \;

On Mon, 2004-06-07 at 12:17, 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.
> 
> Any suggestions?
> 
> Thanks in advance.
> Keith Morris
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale



More information about the Ale mailing list