Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I have a ftp server setup for our organization. I wanted to jail users in their home directory so they can not download any sensitive files.
Added this line to the vsftpd.conf file:
chroot_local_user=YES
Which did the trick just fine.
BUt, We have a CIFS mounted share that some people need access to. It is mounted as follows:
//Server/Share /Sharename
So it is mounted in the root directory. I then had symbolic links pointing to the folders inside this share in the users home directory to allow them to get to these files (read only via fstab).
Now when I jail them the symbolic links show up but they are unable to follow them since they are jailed.
I am not sure if it will work or not, but you could try using the mount command (for the share you want to provide them access to) with the -bind option. I believe that will take care of what you are trying to accomplish.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.