jailkit-users
[Top][All Lists]
Advanced

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

[Jailkit-users] Jailed user unable to logon


From: jcdole
Subject: [Jailkit-users] Jailed user unable to logon
Date: Wed, 27 Aug 2014 22:47:00 +0200 (CEST)

Hello.

I try to chroot a user using jailkit.

The jail path is /home/jail
The user name is "fan_speed" and belongs to standard group "users"
After creation the user home is transferred from /home/fan_speed to 
/home/jail/home/fan_speed using jailkit script
        "jk_jailuser -m -j /home/jail/fan_speed"

The new home path for the jailed user is /home/jail/home/fan_speed

When the user try to logon, I get this error in /var/log/message :
        "abort, homedir '/home/jail/home/fan_speed' for user fan_speed (1004) 
does not contain the jail separator <jail>/./<home>"

--------------------------------------

/etc/passwd show :
        "fan_speed:x:1004:100:LOGON USER in 
JAIL:/home/jail/./home/fan_speed:/usr/sbin/jk_chrootsh"

/home/jail/etc/passwd show :
        "fan_speed:x:1004:100:LOGON USER in 
JAIL:/home/jail/./home/fan_speed:/usr/sbin/jk_lsh"

/var/log/messages show :

        §TIME§ Aug 27 00:01:05,§PR§ 6,§FCLTY§ 10,§HOST§ LINUX-TEST-123, §TAG§  
kdm:, §MSG§  { :0[13711]: pam_unix(xdm:session): session opened for user 
fan_speed by (uid=0)} 

        §TIME§ Aug 27 00:01:05,§PR§ 6,§FCLTY§ 4,§HOST§ LINUX-TEST-123, §TAG§  
systemd-logind[836]:, §MSG§  { New session 61 of user fan_speed.} 

        §TIME§ Aug 27 00:01:05,§PR§ 6,§FCLTY§ 4,§HOST§ LINUX-TEST-123, §TAG§  
systemd-logind[836]:, §MSG§  { Linked /tmp/.X11-unix/X0 to 
/run/user/1004/X11-display.} 

        §TIME§ Aug 27 00:01:05,§PR§ 3,§FCLTY§ 4,§HOST§ LINUX-TEST-123, §TAG§  
jk_chrootsh[14800]:, §MSG§  { abort, homedir '/home/jail/home/fan_speed' for 
user fan_speed (1004) does not contain the jail separator <jail>/./<home>} 

        §TIME§ Aug 27 00:01:05,§PR§ 6,§FCLTY§ 10,§HOST§ LINUX-TEST-123, §TAG§  
kdm:, §MSG§  { :0[13711]: pam_unix(xdm:session): session closed for user 
fan_speed} 

        §TIME§ Aug 27 00:01:05,§PR§ 6,§FCLTY§ 4,§HOST§ LINUX-TEST-123, §TAG§  
systemd-logind[836]:, §MSG§  { Removed session 61.}


Any help is welcome. 

Thank you for helping. JCD



reply via email to

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