Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- May 2012
root user chroot-jailed, unable to login
I created a user (sftpuser) for sftp only, then modified it
usermod -s /usr/libexec/openssh/sftp-server sftpuser
echo '/usr/libexec/openssh/sftp-server' >>/etc/shells
and hence changed the sshd_config (openSSH 4.3p2) from
Subsystem sftp /usr/libexec/openssh/sftp-server
Subsystem sftp internal-sftp
Although I was a bit confused when I did the above changes, I didn't realise that the "root" user can get chroot-jailed. Now I can't login as root!
SFTP works fine for both users, but they both have been chroot'ed so can't access any files above /home/sftpuser
- Join Date
- May 2011
i thought sftp chroot stuff required OpenSSH >= 4.8? anyway, can't you just ssh in as some other regular user and then su up to root? or did your edits to ssh_config affect *all* users?
is this a remote machine, i take it? if so, is VNC or telnet (yikes!) or any other login service running? if not, is there anyone remote whom you trust to undo the sshd_config changes on the machine for you?