[Chrootssh-users] Users not being dropped into chroot shell
Brought to you by:
punkball
From: Aaron M. H. <ah...@le...> - 2003-09-09 06:45:55
|
All, I am attempting to setup a RH9 server and need to allow shell access to clients to meet with contract requirements. I have downloaded openssh-3.6p1-chroot.tar.gz (the pre-patched source) and openssl-0.9.7b.tar.gz. I have successfully installed both into /opt/local. For testing reasons I have this instance of ssh listening on port 2222 and the regular sshd daemon listening on port 22. I can successfully run chroot /chroot /bin/bash and get dropped into the chrooted enviornment. However, when I ssh/scp/sftp into the machine I am not getting dropped into the chrooted enviornment. aaron@testbox1$ ssh -p 2222 newtest@testbox2 Use is restricted to Schlumberger authorized users who must comply with the Electronic Communications Policy. Usage is monitored; unauthorized use will be prosecuted. newtest@shogun1's password: Last login: Mon Sep 8 13:19:41 from testbox1 -bash-2.05b$ As you can see I am logging in successfully, but look where I'm put: -bash-2.05b$ pwd /chroot/./home/newtest Instead of /home/newtest. Can anyone think of something I may have "overlooked", or why I can manually chroot to the enviornment but not automatically during login? TIA! -- Aaron M. Hirsch |