Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    root user chroot-jailed, unable to login

    Hello All,
    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
    ChrootDirectory /home/sftpuser

    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

    Please help!

  2. #2
    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?

Posting Permissions

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