Find the answer to your Linux question:
Results 1 to 6 of 6
While working with proftpd and chrooting users into their respective folders, how do I add a system link that they can access outside that folder while still maintaining the chroot ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2004
    Posts
    11

    ProFTPD, system linking, and chrooting...oh yeah


    While working with proftpd and chrooting users into their respective folders, how do I add a system link that they can access outside that folder while still maintaining the chroot ?

    voth

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Now that's hard, since the chroot by definition doesn't let clients get outside. The only way is to use the mount --bind call.

  3. #3
    Just Joined!
    Join Date
    Jan 2004
    Posts
    11
    Can you maybe supply me with a little more information on the command mount -bind you are refering to?

    voth

  4. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    They added the functionality pretty late, I think in kernel 2.4.18 or 19 or so. Check your kernel version before trying (run `uname -r' to find out your kernel version if you don't know it). mount --bind allows you to essentially hard-link directories, except it's not in the filesystem but only in the kernel. Use it like this:
    Code:
    mount --bind /var/dir /second/dir
    That will make /var/dir available on /second/dir. Remember, since this doesn't change anything in the filesystem, you have to do it again every time you reboot.
    See the mount manpage for more info.

  5. #5
    Linux Newbie
    Join Date
    Feb 2004
    Posts
    139
    How exactly do you chroot users using proftpd?

  6. #6
    Linux User
    Join Date
    Jun 2003
    Location
    Huntington Beach, CA
    Posts
    390
    DefaultRoot ~

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •