分享

500 OOPS: vsftpd: refusing to run with writab...

 richsky 2012-04-30
500 OOPS: vsftpd: refusing to run with writable anonymous root解决方法
2010-03-15 21:13
新的vsftp的上传目录改为了/srv/ftp,为了给予上传的权限,我给权限为:sudo chmod 777 /srv/ftp
登录结果为:
fantasy0707@fantasy0707-desktop:/srv$ ftp localhost
Connected to localhost.
220 Welcome to fantasy0707 FTP service.
Name (localhost:fantasy0707): anonymous
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable anonymous root
Login failed.
小看下文档才发现是权限给的太宽了,更改下:
sudo chmod 775 /srv/ftp
再试下:
fantasy0707@fantasy0707-desktop:/srv$ sudo chmod 775 *
fantasy0707@fantasy0707-desktop:/srv$ ftp localhost
Connected to localhost.
220 Welcome to fantasy0707 FTP service.
Name (localhost:fantasy0707): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls -l
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rw-r--r--    1 0        0              16 Mar 14 22:27 hello.txt
226 Directory send OK.
ok,登录成功!

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多