LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   linking outside a chrooted dir ? (https://www.linuxquestions.org/questions/linux-newbie-8/linking-outside-a-chrooted-dir-108836/)

7even 10-26-2003 06:04 PM

linking outside a chrooted dir ?
 
Hi,
one problem fixed...by creating a new one.. I love it.
My Problem:
I started vsftpd to have a FTP-server ... got a user for login.... chrooted him in his home.
Now in his home I need to link him to another disk/partition to find the data thats waiting for him. The thing is, the user can t change to the linked directory as long as I got this chroot_local_user=YES in the vsftp.conf. ... when I comment it out, he can change to the linked dir.... but also anywhere else.

Is there a way to tell him where he can go, and where not , without completely locking him in his home ???

Thanx

7even

:newbie:

TheOther1 11-15-2003 02:41 PM

From the vsftpd FAQ:
Q) Why don't symlinks work with chroot_local_user=YES?
A) This is a consequence of how chroot() security works. As alternatives,
look into hard links, or if you have a modern Linux, see the powerful
"mount --bind".

Also found this in the FAQ:
Q) Help! Does vsftpd support hiding or denying certain files?
A) Yes. Look at the hide_file and deny_file options in the manual page.


All times are GMT -5. The time now is 10:58 PM.