jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Jailkit-users] Jailed shell kicks user out


From: Tomi Leppänen
Subject: [Jailkit-users] Jailed shell kicks user out
Date: Sun, 14 Sep 2014 11:00:54 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1

Hi

I recently upgraded my server from Ubuntu 12.04 to 14.04 (amd64) and after that updated files in my jailkit jail. Now I can't login to users in my jail. Here is what happens if I try to login using SSH:
address@hidden:~]$ ssh address@hidden
-- STUFF --
Last login: Wed Aug 27 16:34:00 2014 from my-laptop
Connection to 192.168.0.yyy closed.
address@hidden:~]$

If I try it using su with another non-jailed user:
address@hidden:~$ LANG=C su tomin
Password:
address@hidden:~$

In /var/log/auth.log there are following lines:
Aug 27 16:41:26 my-server su[25956]: Successful su for tomin by tomi
Aug 27 16:41:26 my-server su[25956]: + /dev/pts/2 tomi:tomin
Aug 27 16:41:26 my-server su[25956]: pam_unix(su:session): session opened for user tomin by tomi(uid=1000)
Aug 27 16:41:26 my-server systemd-logind[892]: Removed session 23.
Aug 27 16:41:26 my-server jk_chrootsh[26011]: now entering jail /home/jail for user tomin (1005) with arguments Aug 27 16:41:26 my-server jk_chrootsh[26011]: ERROR: failed to execute shell /bin/bash for user tomin (1005), check the permissions and libraries of /home/jail//bin/bash Aug 27 16:41:26 my-server su[25956]: pam_unix(su:session): session closed for user tomin

ls -l /home/jail/bin/bash shows:
-rwxr-xr-x 1 root root 1017016 Apr 24 01:43 /home/jail/bin/bash

I've tried to run "sudo jk_init -fj /home/jail uidbasics extendedshell" but that didn't help at all.

Where is the problem? What could I try next?

Thank you for your answers.
Regards Tomi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]