Another option is to use the recursive feature of chmod to 
change the permissions on the files.  E.g.

chmod -R a+rX  .

which will recursively add read for all users to files (and directories) and 
will 
also add execute if the file is a directory or if it already has at least one 
execute 
bit set.

Regards,
Mitch

________________________________________
From: CCP4 bulletin board [CCP4BB@JISCMAIL.AC.UK] On Behalf Of Dirk Kostrewa 
[kostr...@genzentrum.lmu.de]
Sent: Tuesday, July 19, 2011 6:14 AM
To: CCP4BB@JISCMAIL.AC.UK
Subject: Re: [ccp4bb] Permissions and ownerships in ccp4 6.2.0

Dear all,

or use a modified version of Clemens's commands for that:

find . -perm 700 -exec chmod 755 {} \;
find . -perm 750 -exec chmod 755 {} \;
find . -perm 600 -exec chmod 644 {} \;
find . -perm 640 -exec chmod 644 {} \;

Best regards,

Dirk.

Am 19.07.11 14:34, schrieb Clemens Vonrhein:
> Dear all,
>
> ideally, permissions should be either
>
>    rw-r--r-- (0644)
>
> or (for files that need to be executed as well as directories)
>
>    rwxr-xr-x (0755)
>
> One quick fix:
>
>    find . -type d -exec chmod -v 0755 {} ";"
>    find . -type f -exec chmod -v 0755 {} ";"
>
> but that last command makes every single file executable, which is
> rather ugly (but doing a selective chmod 0755/0644 is a bit tricky
> with all those script files - some need to be executed but others
> arent). I don't see a need to have read-only files like all the CIF
> dictionaries with permission 0755.
>
>
> The correct permissions can only be set during packaging
> unfortunately.
>
> Cheers
>
> Clemens
>

--

*******************************************************
Dirk Kostrewa
Gene Center Munich, A5.07
Department of Biochemistry
Ludwig-Maximilians-Universität München
Feodor-Lynen-Str. 25
D-81377 Munich
Germany
Phone:  +49-89-2180-76845
Fax:    +49-89-2180-76999
E-mail: kostr...@genzentrum.lmu.de
WWW:    www.genzentrum.lmu.de
*******************************************************

Reply via email to