Hi,

Louis-Marie Mouton wrote on 2008-09-17 13:38:38 +0200 [Re: [BackupPC-users] 
User Permissions]:
> Dejan Batic a écrit :
> [...]
> > Now, how can I apply chmod o+x only to folders?
>
> Just use find to locate directories and make them executable:
> 
> $ find /path/to/dir -type d -exec chmod +x {} \;

or if you don't want to exec a chmod for each directory,

        find /path/to/dir -type d -print | xargs chmod o+x

(and it's "o+x" if you only want "o+x" ;-).

Alternatively, if you want to give "others" access to all files too, it's
simply

        chmod -R o=u,o-w /path/to/dir

(that's "copy permissions from user to others, then take away write permission
for others").

Regards,
Holger

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to