> Salut, > > Certainement un "bête" question, mais j'ai un répertoire dont je > voudrais changer les permissions de tous les sous-répertoires en 700 et > de tous les fichiers en 600. > > Si je suis dans le répertoire et que je fais : > chmod -R 700 * > Toutes les permissions deviennent 700 (répertoires et fichiers). > Si je fais : > chmod -R 600 * idem mais permissions 600. > > Donc ce n'est pas cela que je dois faire ;-) >
En deux coups find ./ -type f -exec chmod 600 ; find ./ -type d -exec chmod 700 Ou un petit script rapide #!/bin/sh for trouve in $(find ./ ) do if [ -f $trouve ] then chmod 600 $trouve fi if [ -d $trouve ] then chmod 700 $trouve fi done B.F aka Becket _______________________________________________________ Linux Mailing List - http://www.unixtech.be Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux Archives: http://www.mail-archive.com/[EMAIL PROTECTED] IRC: efnet.unixtech.be:6667 - #unixtech