Hi,
Perhaps I'm missing something, well, I must be. I've tried a variety
of things and I keep scanning the docs but I can't seem to make this
work.
I want to do the equivalent of
chmod <perms> `find -type d`
so as to apply the chmod to only directories, no files.
In ant I currently have:
<chmod dir="${tpr.deploy.dir}" perm="u+rwx,g+rx,o+rx" verbose="true" >
<fileset dir="${tpr.deploy.dir}">
<not>
<type type="file"/>
</not>
</fileset>
</chmod>
That should make all the directories user read write, and group and
other read only. But the result is not what I want:
drwxr-sr-x 9 matt tpr 4096 2009-11-21 16:44 .
drwxrwsr-x 8 matt tpr 4096 2009-11-21 16:44 ..
-rw-rw-r-- 1 matt tpr 262 2009-11-21 16:44 cron.php
-rw-rw-r-- 1 matt tpr 3837 2009-11-21 16:44 .htaccess
drwxr-sr-- 2 matt tpr 4096 2009-11-21 16:44 includes
-rw-rw-r-- 1 matt tpr 980 2009-11-21 16:44 index.php
-rw-rw-r-- 1 matt tpr 46926 2009-11-21 16:44 install.php
drwxr-sr-- 3 matt tpr 4096 2009-11-21 16:44 misc
drwxr-sr-- 35 matt tpr 4096 2009-11-21 16:44 modules
drwxr-sr-- 3 matt tpr 4096 2009-11-21 16:44 profiles
drwxr-sr-- 2 matt tpr 4096 2009-11-21 16:44 scripts
drwxr-sr-- 4 matt tpr 4096 2009-11-21 16:44 sites
drwxr-sr-- 7 matt tpr 4096 2009-11-21 16:44 themes
-rw-rw-r-- 1 matt tpr 25457 2009-11-21 16:44 update.php
-rw-rw-r-- 1 matt tpr 352 2009-11-21 16:44 xmlrpc.php
I've tried a bunch of things but the other never gets the x flag.
Thanks,
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]