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

0

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

profile picture
EXPERT
demandé il y a 6 mois17 vues
1 réponse
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
EXPERT
répondu il y a 6 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions