I was trying to use symbolic links:
ln -s /mnt/Personal/Music /mnt/user/Music
But I needed to add them to the wheel group - which didn't make sense, I tried doing everything relative, instead of absolute - like indicated http://www.proftpd.org/docs/howto/Chroot.html but it didn't work for me. Adding them to wheel basically allowed them to navigate anywhere they wanted.
If anyone has had success using symlinks with their proftpd server, do let me know.
In the end I had to mount a null filesystem
mount_nullfs /mnt/Personal/Music /mnt/user/Music
This basically duplicates the filesystem, any changes made to the dupe will affect the original, so be very careful with your user privilages.
To undo this "link" you can simple umount the dupe
I do not currently know of any ill side effects to this, but I would appreciate any feedback from the guru's out there.
I do have to run these commands every-time the system starts - this is a real drawback - I would love to use symbolic links, but have not been able to work it out.
Learning FreeNAS: Configure and manage a network attached storage solution
Anything useful I find and decide to write down in my geeky wanderings of the web. While some guides make reference to torrents please be aware that I do not conduct or condone illegal downloading, and I do not share the views of any external site I may link to. This site is merely for informational purposes. Any purchases made from clicks on links to products on this page may result in an affiliate commission for me. As an Amazon Associate I earn from qualifying purchases
HOW TO: Install VPN server on Ubuntu when server is behind firewall
The whole point in this post is to run your own VPN service, and allow you to connect remote devices to your home network. To start off yo...
Sep 27, 2010
Working around chroot jail to allow users to access other directories in my FTP server.
Subscribe to: Post Comments (Atom)
Post a Comment