How do I determine the path the user logs in on FTP (VSFTP)? The user should only be able to access a specific path via FTP.
For example: The user can access only the path /var/lib/tomcat/webapps/ROOT. How do I configure this?
|
feedback
|
|
Try to configure your FTP server in chroot/jail environment. edit /etc/vsftpd/vsftpd.conf
Now, to file /etc/vsftpd/vsftpd.chroot_list simply add name of user user1. Change your user default home directory or you can also bind your access path with home directory of user.
or
/etc/init.d/vsftpd restart | ||||
|
feedback
|
/var/lib/tomcat/webapps/ROOTor perhaps how you canchrootthem there? – ErikA Jan 30 at 4:52