HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Problem with Jailkit (http://www.howtoforge.com/forums/showthread.php?t=40226)

marcgeldon 19th October 2009 11:02

Problem with Jailkit
 
I installed our new server like described in this How-To:
http://www.howtoforge.com/perfect-se...10-ispconfig-3

Everything works fine.

But no I've created a new shell user with "Chroot Shell" = Jailkit.

If I try to login with the correct shell username and password via SSH the server just disconnects.

I have no problem login if I set the "Chroot Shell" to "none".

Can somebody help?

Best wishes,

Marc

till 19th October 2009 12:22

Take a lok at your syslog, auth.log and messages log to get more details on this problem.

marcgeldon 19th October 2009 12:26

SYSLOG
Code:

Oct 19 12:25:15 server301 console-kit-daemon[13803]: CRITICAL: cannot initialize libpolkit
AUTH.LOG
Code:

Oct 19 12:23:24 server301 sshd[13495]: Accepted password for XXX from 95.116.241.178 port 63005 ssh2
Oct 19 12:23:24 server301 sshd[13495]: pam_unix(sshd:session): session opened for user XXX by (uid=0)
Oct 19 12:23:24 server301 jk_chrootsh[13563]: abort, the group ID from /etc/passwd (5004) does not match the group ID we run with (5005)
Oct 19 12:23:24 server301 sshd[13495]: pam_unix(sshd:session): session closed for user XXX


till 19th October 2009 12:28

Please try to delete the shell user and recreate it. Also make sure that you dont have selinux enabled.

marcgeldon 19th October 2009 12:35

I've deleted the user and recreated it. Still does not work. Same problems in logfiles.

SELinux is NOT enabled on my system.

marcgeldon 20th October 2009 14:02

I deleted the site and recreated it (also the shell users). Now it works.


All times are GMT +2. The time now is 08:27.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.