Magento2.4.6的sftp无法访问/var/www/html,请问如何修改html文件的权限?

0

【以下的问题经过翻译处理】 你好,我在Ubuntu22.04上安装了magento2.4.6。我不太了解文件夹权限,现在无法使用sftp登录到/var/www/html文件。我该如何解决这个问题?

profile picture
EXPERTO
preguntada hace 6 meses9 visualizaciones
1 Respuesta
0

【以下的回答经过翻译处理】 从下面的权限来看,似乎除了“www-data”以外的用户没有读/写权限。

drwx--x--x 12 www-data www-data 4096 Apr 21 14:23 html

因此尝试以下命令。

chmod 775 -R /var/www/html

profile picture
EXPERTO
respondido hace 6 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas