#1 Le 18/05/2016, à 18:57
- mdu
Impossible d'entrer dans le dossier /var/www.
Bonsoir
Je tente de lire le contenu du dossier www pour une installation en local de Wordpress.
J' ai le message suivant : Impossible d'entrer dans le dossier /var/www.
Comment changer les droits du dossier www?
Merci pour votre aide.
System:Lenovo-G70-70 Kernel: 5.3.0-26-generic x86_64 bits: 64 Desktop: Cinnamon 4.4.8 Distro: Linux Mint 19.3 Tricia
Machine:Type Laptop LENOVO product: 80HW0011FR v: Lenovo G70-70
CPU:Dual Core model: Intel Core i5-4210U bits: 64 type: MT MCP
Graphics:Intel Haswell-ULT Integrated Graphics driver: i915.
Hors ligne
#2 Le 18/05/2016, à 19:16
- mdu
Re : Impossible d'entrer dans le dossier /var/www.
ls -l me donne :
/var$ ls -l
total 48
drwxr-xr-x 2 root root 4096 mai 18 11:54 backups
drwxr-xr-x 20 root root 4096 mai 18 17:22 cache
drwxrwsrwt 2 root whoopsie 4096 avril 19 17:07 crash
drwxr-xr-x 77 root root 4096 mai 18 18:01 lib
drwxrwsr-x 2 root staff 4096 avril 11 2014 local
lrwxrwxrwx 1 root root 9 oct. 15 2015 lock -> /run/lock
drwxrwxr-x 17 root syslog 4096 mai 18 19:31 log
drwxrwsr-x 2 root mail 4096 août 5 2015 mail
drwxrwsrwt 2 root whoopsie 4096 août 5 2015 metrics
drwxr-xr-x 2 root root 4096 août 5 2015 opt
lrwxrwxrwx 1 root root 4 oct. 15 2015 run -> /run
drwxr-xr-x 9 root root 4096 oct. 16 2015 spool
drwxrwxrwt 6 root root 4096 mai 18 19:49 tmp
drwxrwx--- 3 www-data www-data 4096 mai 18 17:38 www
System:Lenovo-G70-70 Kernel: 5.3.0-26-generic x86_64 bits: 64 Desktop: Cinnamon 4.4.8 Distro: Linux Mint 19.3 Tricia
Machine:Type Laptop LENOVO product: 80HW0011FR v: Lenovo G70-70
CPU:Dual Core model: Intel Core i5-4210U bits: 64 type: MT MCP
Graphics:Intel Haswell-ULT Integrated Graphics driver: i915.
Hors ligne
#3 Le 18/05/2016, à 19:37
- jplemoine
Re : Impossible d'entrer dans le dossier /var/www.
Et comme d'habitude, on joue d'abord avec les droits puis on demande....
www devrait appartenir à root:root et les droits sont bizarres.
--> Tu as donc joué avec les droits et tu as perdu....
Comme tu n'as visiblement pas compris ce que tu faisais, tu as enlevé les droits à des utilisateurs autre que www-data:www-data (sauf root).
Il est donc normal que ton utilisateur n'y ait pas droit : c'est ce que tu as demandé
Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.
Hors ligne