我们常遇到需要修改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即可:http://www.dedecms.com/knowledge/servers/linux-bsd/2013/0621/30775.html