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 ...
- 11-17-2010 #1Just 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
- 12-16-2010 #2Just 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.
- 02-09-2011 #3Just Joined!
- Join Date
- Feb 2011
- Posts
- 1
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
- 05-16-2011 #4Just Joined!
- Join Date
- Nov 2010
- Posts
- 2
> 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.




