SFTP Permision错误

时间:2016-02-11 04:05:49

标签: ftp sftp

我刚为Google Cloud平台设置了Batami Magento。使用给出的文档,我能够使用shh .ppk文件成功设置我的SFTP(Filezilla)。我有权将我的文件上传到我/home/bitnami的默认文件夹。但我无法上传或更改文件夹/opt/bitnami/apps/magento /opt/bitnami/apps/magento

的权限

这是filezilla日志

Status: Starting upload of C:\Users\GLOBEAST\Downloads\porto_2002\Porto 2.0.0.2\Theme Files\Magento 2.x\Porto Theme.zip
Command:    cd "/opt/bitnami/apps/magento"
Response:   New directory is: "/opt/bitnami/apps/magento"
Command:    put "C:\Users\GLOBEAST\Downloads\porto_2002\Porto 2.0.0.2\Theme Files\Magento 2.x\Porto Theme.zip" "Porto Theme.zip"
Error:  /opt/bitnami/apps/magento/Porto Theme.zip: open for write: permission denied
Error:  File transfer failed
Status: Starting upload of C:\Users\GLOBEAST\Downloads\porto_2002\Porto 2.0.0.2\Theme Files\Magento 2.x\Porto Theme.zip
Status: Retrieving directory listing of "/opt/bitnami/apps/magento"...
Status: Listing directory /opt/bitnami/apps/magento
Command:    put "C:\Users\GLOBEAST\Downloads\porto_2002\Porto 2.0.0.2\Theme Files\Magento 2.x\Porto Theme.zip" "Porto Theme.zip"
Error:  /opt/bitnami/apps/magento/Porto Theme.zip: open for write: permission denied
Error:  File transfer failed
Status: Starting upload of C:\Users\GLOBEAST\Downloads\porto_2002\Porto 2.0.0.2\Theme Files\Magento 2.x\Porto Theme.zip
Status: Retrieving directory listing of "/opt/bitnami/apps/magento"...
Status: Listing directory /opt/bitnami/apps/magento
Command:    put "C:\Users\GLOBEAST\Downloads\porto_2002\Porto 2.0.0.2\Theme Files\Magento 2.x\Porto Theme.zip" "Porto Theme.zip"
Error:  /opt/bitnami/apps/magento/Porto Theme.zip: open for write: permission denied
Error:  File transfer failed
Status: Retrieving directory listing of "/opt/bitnami/apps/magento"...
Status: Listing directory /opt/bitnami/apps/magento
Status: Directory listing of "/opt/bitnami/apps/magento" successful
Status: Set permissions of '/opt/bitnami/apps/magento' to '757'
Command:    cd "/opt/bitnami/apps"
Response:   New directory is: "/opt/bitnami/apps"
Command:    chmod 757 "magento"
Error:  set attrs for /opt/bitnami/apps/magento: permission denied

1 个答案:

答案 0 :(得分:1)

Bitnami开发人员,

默认情况下,/opt/bitnami/apps/magento/用户和群组为root:root,因此bitnami没有权限。路径/opt/bitnami/apps/magento/htdocs/包含用户和组bitnami:daemon。您应该能够毫无问题地将文件上传到此文件夹。

但是,如果要更改文件夹权限,则需要通过SSH访问并执行sudo chmod YOUR_FOLDER。请注意,它可能会产生安全问题。例如,我们不建议other users拥有group的更多权限(正如您使用chmod 757设置的那样)。

我希望它有所帮助