limit ssh to user root only

Discussion in 'Installation/Configuration' started by aclhkaclhk, Sep 15, 2010.

  1. aclhkaclhk

    aclhkaclhk New Member

    i could login and change to "/". could i limit to eg. /var/www/clients/client8/web6 only

    ispconfig: 3.0.1.3
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Select jailkit in the ssh user settings.

    And you should update your ISPConfig install, you run a very old version.
     
  3. radusoft

    radusoft New Member

    Hi,
    I had the same issue using V3.0.2.2
    Changing to jailkit now results in the ssh session being disconnected as soon as i log in.
    tail /var/log/messages shows:
    Sep 16 14:51:00 test sshd[3972]: Accepted keyboard-interactive/pam for lesliem_shell from 10.0.0.115 port 54208 ssh2
    Sep 16 14:51:00 test jk_chrootsh[3983]: abort, effective user ID is not 0, possibly jk_chrootsh is not setuid root
    Sep 16 14:51:01 test /usr/sbin/cron[3985]: (root) CMD (/usr/local/ispconfig/server/server.sh &> /dev/null)

    Any ideas?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Jailkit seems not to be installed correctly. Which Linux distribution do you use and which tutorial did you use to install the server.
     
  5. radusoft

    radusoft New Member

  6. till

    till Super Moderator Staff Member ISPConfig Developer

    It might be that apparmor prevents that jailkist works correctly. Please check in yast that apparmor is really disabled.
     
  7. radusoft

    radusoft New Member

    Hi,
    Thanks for the feedback.
    Apparmor is disabled.
     

Share This Page