[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



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
&gt;&gt;<a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; 
&gt; 
&gt; _______________________________________________
&gt; Ale mailing list
&gt; Ale at ale.org
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; 



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00133" href="msg00133.html">[ale] chmod question</a></strong>
<ul><li><em>From:</em> graphicsguy at charter.net (Keith Morris)</li></ul></li>
<li><strong><a name="00136" href="msg00136.html">[ale] chmod question</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00137.html">[ale] postfix / Bellsouth as ISP [Solved]</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00139.html">[ale] chmod question</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00136.html">[ale] chmod question</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00139.html">[ale] chmod question</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00138"><strong>Date</strong></a></li>
<li><a href="threads.html#00138"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>