Your regex explicitly stopped just inside Documents<br><br>chmod -R 755 Documents/*/*.txt<br><br>You will also need to chown those files before you chmod them. Non-owner can't change perms.<br><br><div class="gmail_quote">
On Thu, Jun 10, 2010 at 5:22 PM, <span dir="ltr"><<a href="mailto:jcpilman@gmail.com">jcpilman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I recently changed my work laptop over to UBUNTU, Yea! All of the .txt<br>
files I copied over from XP and put in ~/Documents have execute<br>
permission for the owner. To change that, I tried:<br>
<br>
~$ chmod -R a-x Documents/*.txt<br>
~/Documents$ chmod -R a-x *.txt<br>
~/Documents$ chmod -R a-x ./*.txt<br>
~/Documents$ chmod -R u-x ./*.txt<br>
<br>
It fixes the permissions for the files in Documents, but it does not<br>
recurse into the lower Directories.<br>
I looked at the man pages, but haven't figured it out. I also made<br>
sure I am the owner with chown. All the files I copied were<br>
originally:<br>
<br>
nobody:nogroup.<br>
<br>
chown recursed the way I expected it on the first try.<br>
<br>
Can you see what I'm doing wrong?<br>
<br>
...John<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br>Actively in pursuit of Life, Liberty and Happiness <br>Doing pretty well on all 3 pursuits <br><br> Faith is a cop-out. If the only way you can accept an assertion is by faith, then you are conceding that it can’t be taken on its own merits.<br>
Dan Barker, "Losing Faith in Faith", 1992 <br><br>