Find the answer to your Linux question:
Results 1 to 4 of 4
here is the setup<br/> sshd_config: <pre> Match User sftp ChrootDirectory /chroot/sftp </pre> I connect just fine to the folder <pre>/chroot/sftp</pre> However I cannot access the website developer folder due to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2010
    Posts
    2

    chroot and access www developement folder?


    here is the setup<br/>
    sshd_config:
    <pre>
    Match User sftp
    ChrootDirectory /chroot/sftp
    </pre>

    I connect just fine to the folder
    <pre>/chroot/sftp</pre>
    However I cannot access the website developer folder due to it being outside the scope of the defined chrootdirectory
    <pre>/usr/lib/apache2/htdocs</pre>
    How can I access this directory? Is it possible to define the access through sshd_config?
    mount --bind is not available

  2. #2
    Just Joined!
    Join Date
    Oct 2005
    Location
    europe // poland / lodz
    Posts
    2
    The mount --bind is a Linux feature, on FreeBSD use mount -t nullfs .. or mount -t unionfs.

  3. #3
    Just Joined!
    Join Date
    Feb 2011
    Posts
    1

    Arrow chroot problem

    i got ERROR when i ran the command related to chroot

    #chroot /mnt/gentoo/ /bin/bash

    chroot:failed to run command `/bin/bash' : Exec format error

    and i used rescuecd but after installing this cd i am getting the same ERROR
    as above defined.......


    plz suggest me some another solution

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Nov 2010
    Posts
    2

    Thumbs up

    Quote Originally Posted by vermaden View Post
    The mount --bind is a Linux feature, on FreeBSD use mount -t nullfs .. or mount -t unionfs.

    > mount -f nullfs /usr/david/test /chroot/sftp/test
    UX:mount.svr5: ERROR: nullfs: no such file system type
    > mount -f unionfs /usr/david/test /chroot/sftp/test
    UX:mount.svr5: ERROR: unionfs: no such file system type

    Thanks for the heads up. However those appear to not exist on the SCO UNIX OS as well.

    You gave me a place to start at least though.

Posting Permissions

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