Users can't upload files, even with permissions set to them using vsftpd

帅比萌擦擦* 提交于 2021-01-28 05:54:50

问题


I have a cloud hosting linux solution. I had vsftpd working on it, but after having issues and tinkering with a lot of settings, I now have an issue where users can login using FTP and connect to the correct home directory, navigate within it, download files but they cannot upload files to the server. They get a time out error, which appears to be a permissions error, but I can't narrow it down any more than that. /var/logs/syslog gives nothing away.

The folders belong to the users. The parent www folder is set to 555. Can anyone help with this issue at all?

Cheers,

T


回答1:


Try to set the permissions to 755, 555 doesn't allow writing for anyone. Are your user and group different?

You also may need to enable logging for FTP server. The time out error may include some other errors, not only permission denied.

To have extended logging change the variables in your ftp config file:

dual_log_enable=YES
log_ftp_protocol=YES
xferlog_enable=YES
syslog_enable=NO

and check the log file name there.




回答2:


you must create a folder into user folder (Example : /var/www/user1/upload). and set permission 777 (Example : chmod 777 /var/www/user1/upload). then upload file into this folder.



来源:https://stackoverflow.com/questions/14465591/users-cant-upload-files-even-with-permissions-set-to-them-using-vsftpd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!