jailkit-users
[Top][All Lists]
Advanced

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

[Jailkit-users] chrootsh login problem


From: Mike Nelson
Subject: [Jailkit-users] chrootsh login problem
Date: Sun, 1 Jan 2006 15:53:43 -0700

I cannot, for the life of me, figure this one out. I’ve set up jailkit before without a problem, but on my new server I can’t get a user to be able to login.

 

Here’s what I did.

 

jk_init /home/testjail ssh

jk_init /home/testjail jk_lsh

jk_addjailuser /home/testjail danno

 

* restarted jk_socketd

 

passwd danno

 

 

Here’s what the passwd files look like:

 

/etc/passwd

danno:x:512:100::/home/testjail/./home/danno:/usr/sbin/jk_chrootsh

 

/home/testjail/etc/passwd

danno:x:512:100::/home/danno:/usr/sbin/jk_lsh

 

 

If I try to su to danno nothing happens. In my /var/log/messages I get the following:

 

now entering jail /home/testjail for user danno  (512)

Jan  1 16:30:45 plain jk_chrootsh[18403]: abort, failed to get user information in the jail for user ID 512, check /home/testjail/etc/passwd

Jan  1 16:30:45 plain su(pam_unix)[18402]: session closed for user danno

 

 

I get the same error messages if I try to ssh as that user as well.

 

I’m pretty sure the etc/passwd and JAIL/etc/passwd files look right.

Looking at the jk_chrootsh.c source file I successfully get call chroot(jaildir) so I’m failing on: 
pw = getpwuid(getuid());
 
I know getuid() is working because it’s in the log, so getpwuid is failing.
 
Any ideas?
 
BTW I’m using RHEL 3
Thanks,
Mike

reply via email to

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