Bonjour,
impossible d’écrire dans /var/www/html/
j’essai de faire:
echo '<?php phpinfo(); ?>' >/var/www/html/phpinfo.php
la console me répond :
-bash: /var/www/html/phpinfo.php: Permission non accordée
j’essai avec sudo
:
sudo echo '<?php phpinfo(); ?>' >/var/www/html/phpinfo.php
la console me répond :
-bash: /var/www/html/phpinfo.php: Permission non accordée
Pourtant root a les droits non ?
ls -al /var/www/html
total 20
drwxr-xr-x 2 root root 4096 mars 5 23:26 .
drwxr-xr-x 3 root root 4096 mars 5 12:07 ..
-rw-r--r-- 1 root root 10701 mars 5 12:07 index.html
Quel sont les règles d’usage pour écrire dans /var/www/html/
?