新的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,登录成功! |
联系客服