[quote=“fatal”]bad ownership or modes for chroot directory “/var/www/”[/quote] => pas le bon propriétaire ou attributs d’accès, pour faire un chroot avec le dossier “/var/www”
[quote=“Dinath”]… Mon dossier /var/www est bien root…[/quote]Mais encore ?
[ul]propriétaire “root” ou groupe “root”?
propriétaire et groupe “root”?
[/ul]
Quels sont les attributs d’accès au dossier “/var/www/littleboy62” concernant le propriétaire, le groupe, et les autres (u g o) ?
Quel est l’uid et à quel groupe(s) appartiens l’utilisateur “littleboy62” ?
===============
Il faudrait donc vérifier ces informations au sujet de ce dossier, pour:
[ul]soit les adapter à l’utilisateur,
soit adapter l’utilisateur à ces informations.
[/ul]
Donc:
==============
Quel est l’uid et à quel groupe(s) appartiens l’utilisateur “littleboy62” ?
(avec les privilèges du compte root)
(ou depuis le compte de l’utilisateur “littleboy62”)
==============
Merci de transmettre les informations complètes, c’est à dire :
[ul]avec le prompt,
la commande entrée,
et le retour complet de la commande.
[/ul]
Avec une seule commande et son retour par bloc de code.
Comme par exemple:
michel@deb9550:~$ id
uid=1000(michel) gid=1000(michel) groupes=1000(michel),24(cdrom),25(floppy),29(audio),30(dip),44(video),46(plugdev),104(scanner),109(bluetooth),110(netdev),119(libvirt)
michel@deb9550:~$
michel@deb9550:~$ ls -la /mnt
total 17
drwxr-xr-x 11 root root 1024 sept. 16 09:06 .
drwxr-xr-x 23 root root 1024 août 26 01:34 ..
drwxrwx---+ 38 michel michel 4096 sept. 14 04:47 1500-1
drwxr-xr-x 3 root root 4096 sept. 12 16:50 500-17-virt-img
michel@deb9550:~$
De cette façon, on évite des malentendus concernant:
[ul]les privilèges du compte utilisateur qui a lancé la commande,
les erreurs de syntaxe dans la ligne de commande,
les messages d’erreurs incomplets ou absents,
etc…
[/ul]
Merci encore.