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

0

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

profile picture
ESPECIALISTA
feita há 6 meses17 visualizações
1 Resposta
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
ESPECIALISTA
respondido há 6 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas