Christophe Gaubert a écrit :
Le 06/06/06, Bernard Siaud <[EMAIL PROTECTED]> a écrit :
Pas s'il na pas de droit sur les "frères" non ?
Un test s'impose !
Alors, voyons :
# ls -lR
.:
total 4
drwxrwxr-x 4 root christophe 4096 jun 6 21:13 toto/
./toto:
total 8
drwxrwxr-x 2 root christophe 4096 jun 6 21:13 bidule/
drwxr-xr-x 2 root christophe 4096 jun 6 21:13 machin/
./toto/bidule:
total 0
./toto/machin:
total 0
Je redeviens simple utilisateur (christophe) :
$ rmdir toto/bidule/
# pas de problème, c'est normal
$ rmdir toto/machin/
# pas de problème non plus, et pourtant, je n'avais pas les
droits d'écriture sur toto/machin.
Voilà :)
Dans ce cas, il faut mettre au moins un fichier dedans :
[EMAIL PROTECTED] ll | grep machin
drwxr-xr-x 2 root root 4096 jun 6 21:26 machin/
[EMAIL PROTECTED] rd machin
rmdir: `machin': Le répertoire n'est pas vide.
[EMAIL PROTECTED] rm -fr machin
rm: ne peut enlever `machin/machin': Permission non accordée
[EMAIL PROTECTED] chmod 777 machin
chmod: modification des permissions de `machin': Opération non permise
[EMAIL PROTECTED] chown troumad machin
chown: changement de propriétaire pour `machin': Opération non permise
[EMAIL PROTECTED] chown troumad machin
--
Amicalement vOOotre Troumad Alias Bernard SIAUD
mon site : http://troumad.info : AD&D maths WEB sectes
Pour la liberté http://lea-linux.org http://www.eurolinux.org/index.fr.html
N'envoyez que des documents avec des formats ouverts, comme
http://fr.openoffice.org
=========================================
Vous souhaitez acquerir votre Pack ou des Services Mandriva?
Rendez-vous sur "http://store.mandriva.com".
Rejoignez le club mandrake : http://www.mandrivaclub.com
=========================================