vsftp problem with user escaping directory

Hi there.

I've setup a user on a slackware box with VS FTP running on it.

This user has his regular home directory but in that home directory is a symbolic link that takes a user to /var/www/html/test/testdir
(I know it's not terribly secure but i cant avoid it for now)

The problem being that this user can "cd .." and get to /var/www/html/test . "cd .." again and he gets to /var/www/html.

This is somewhat worrying.

How can I prevent a user escaping his root directory structure and going above it?


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

open /etc/vsftpd/vsftpd.conf

and add a line into that


and restart vsftpd .

              If  set to YES, local users will be placed in a chroot() jail in
              their home directory after  login. Changing to symobolic links
              will fail .


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
darynAuthor Commented:
thankin y'kindly, sir.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.