softlink access and chroot in linux

D_wathi
D_wathi used Ask the Experts™
on
Dear Experts:

I have created the softlink of the samba share in the users home directory this user login usng the ftp application if uncommented or removed this user from /etc/vstftpd/chroot_list then the user is able to cd or browse into the softlink but by doing so i have an security issue i,e user can cd from his home and see all other directories even though it is read only still it is not safe hence iam looking for something the soflink should be accessible but user should be still jailed in his home directory. please help me in this. Thanks in advance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2013
Top Expert 2013
Commented:
Did you try the "mount --bind .." method mentioned in our previous thread?
wmp
This may depend on the FTP server and/or version of linux you're running, but on mine you do this by setting the login shell of the user ID to /bin/false.

You can try this by using the command 'usermod -s /bin/false username' or by editing /etc/passwd and changing the last field in the user's line to /bin/false.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial