Life, Work and Technology

Oh, hey there, thank you for dropping by.

The navigation is to your right to help you explore.

Like something, disagree? Drop me a line or leave a comment. Its always nice to hear from you :)

vsftpd : Allowing access to folders outside home when “chroot_local_user=YES”

vsftpd is tested and proven. It works! It’s secure and performs. With ‘chroot_local_users=YES’ it locks a user to his/her home directory, but in a corporate environment there are always a few that need access to more that one user’s home for some reason or other. I found myself in the same pit today while setting up a new FTP server that would not hang ever now and then. Yes, the old one ran on M$

Getting around chroot

For the record “ls -s /home/user1 /home/user2″ does not work. The chroot will not allow you to get out !!

Starting for kernel 2.4.Something a filesystem could be mounted on multiple mount points using the –bind option. hence:

  1. $sudo mount --bind /home/user1/ /home/user2/user1

That’s it, log in as user2 and you should be able to see user1’s home. Pretty neat huh ?

Don’t forget to add it to rc.local so that its mounted on ever reboot automatically

If you like the article please help me create awareness of my blog by bookmarking it on social website below. Thanks in advance
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • IndiaGram
  • IndianPad
  • De.lirio.us
  • LinkedIn
  • Live
  • NewsVine
  • Reddit

This entry was posted You can leave a response, or trackback from your own site.

What do you think ?

Click here to cancel reply.