[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: find e chmod



On Mon, Mar 03, 2003 at 05:42:07PM +0100, Filippo Basso wrote:
> Semplicemente, devo dare alle cartelle un certo tipo di permessi, ai file un 
> altro... all'interno di una directory molto ramificata. Volevo dare pochi 
> comandi, e quindi fare qualcosa del tipo:
> find -type f  -->  chmod 665
> find -type d  -->  chmod 771
> si può fare al volo?
si con l'opzione -exec:
find -type d -exec chmod 771 {} \;
find -type f -exec chmod 665 {} \;
> thanx 1000,
nulla
> 	filippo
-- 
Pengz
If money makes a man strange -- we gots to rearrange
So what makes the world go round
If love is against the law -- listen I don't know
Gotta change how it's goin down
Itzsoweezee -- De La Soul



Reply to: