修改ftp上傳路徑
[root@localhost local]# chown ftp ftpdirectory/
[root@localhost local]# chgrp ftp ftpdirectory/
[root@localhost local]# chmod 755 ftpdirectory/
[root@localhost local]# ll |grep ftpdirectory
drwxr-xr-x 2 ftp ftp 4096 4月 14 16:37 ftpdirectory
[root@localhost local]# usermod -d /usr/local/ftpdirectory/ ftp
查看“Directory”的值是否更改成功:
[root@localhost local]# finger ftp
Login: ftp Name: (null)
Directory: /usr/local/ftpdirectory/ Shell: /sbin/nologin
Never logged in.
No mail.
No Plan.
到這步上傳的目錄已經更改完成,重新啟動vsftp即可: