[linux] recursive chmod len na directories

Robert Varga nite na hq.alert.sk
Sobota Srpen 25 19:18:49 CEST 2001


On Sat, Aug 25, 2001 at 07:07:30PM +0200, Payo Petras wrote:
> Caf Peter,
> 
> Saturday, August 25, 2001, 7:02:12 PM, si napisal:
> 
> > No ked potrebujes len +x na adresare, nemusis cez find ale
> > mozes chmod +X
> 
> ...  no ide mi presne o to, ze mam velku adresarovo-suborovu
> strukturu,   treba   mi  teraz  zmenit  vsetko  na  750  pri
> adresaroch a 640 pri suboroch ...

find . -type f -exec chmod 640 \{\} \;
find . -type d -exec chmod 750 \{\} \;

alebo (rychlejsie):

chmod -R 750 .
find . -type f -exec chmod -x \{\} \;

-- 
Kind regards,
Robert Varga
------------------------------------------------------------------------------
n na hq.sk                                          http://hq.sk/~nite/gpgkey.txt
 
------------- další část ---------------
Netextová příloha byla odstraněna...
Jméno: [žádný popis není k dispozici]
Typ: application/pgp-signature
Velikost: 232 bytes
Popis: [žádný popis není k dispozici]
Url : http://lists.linux.sk/pipermail/linux/attachments/20010825/cadf0ecf/attachment.bin 


Další informace o konferenci linux