Re: chmod -R +x for directories only



On Tue, 30 Aug 2005, billy wrote:

> Is it possible to change the permissions of a directory tree
> (recursively) for execute on directories only?

Yes, you can do this using find with the exec option:

Example:

find . -type d -exec chmod g-rwx '{}' \;

This would change the permissions to remove read write and execute from
the group the file belongs to.

Jason
--
UKFSN.ORG Finance Free Software while you surf the 'net
http://www.ukfsn.org/ 2Mb ADSL Broadband from just £14.98 / month
Bonded ADSL now available

.



Relevant Pages

  • RE: XP Pro. Group Member permission question.
    ... group can execute the program, and it is the user I ... is to group users and associate permissions to the group. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: chmod -R +x for directories only
    ... >>> Is it possible to change the permissions of a directory tree ... >>> for execute on directories only? ... Mark Scott ...
    (uk.comp.os.linux)
  • Re: chmod -R +x for directories only
    ... > Is it possible to change the permissions of a directory tree ... > for execute on directories only? ... Prev by Date: ...
    (uk.comp.os.linux)
  • Re: chmod -R +x for directories only
    ... >> Is it possible to change the permissions of a directory tree for execute on directories only? ... great tragedies of publishing, it was not a limited enough edition ...
    (uk.comp.os.linux)
  • Re: chmod -R +x for directories only
    ... > Is it possible to change the permissions of a directory tree ... > for execute on directories only? ... Prev by Date: ...
    (uk.comp.os.linux)