[ale] chmod question

Keith Morris graphicsguy at charter.net
Mon Jun 7 13:19:34 EDT 2004


Thanks to all that replied! that was exactly what I needed. Both worked 
exactly right:

find $DIR -type f -print|xargs chmod 666	OR
find . -type f -exec chmod 666 {} \;

thanks again! you guys rock!

Keith

Christopher Fowler wrote:

> 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
> 
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://www.ale.org/mailman/listinfo/ale
> 




More information about the Ale mailing list