jailkit-users
[Top][All Lists]
Advanced

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

[Jailkit-users] Problem using jailkit 2.4


From: Bert_De_Ridder
Subject: [Jailkit-users] Problem using jailkit 2.4
Date: Mon, 23 Jul 2007 11:33:31 +0200


Hi,

(I'm sorry if this mail arrives multiple times, I seem to be having trouble sending mail to the list)


I am trying to set up a jail for Tomcat.

This is the setup :

( I will try to limit the pasting to relevant info)

Content of /

drwxr-xr-x 11 root root  264 Jul 20 13:57 home/

Content of /home

drwx------ 10 root     root  240 Jul 10 14:42 tomcat/

Content of /home/tomcat

drwxr-xr-x  3 root root   72 Jul 10 13:46 home/

Content of /home/tomcat/home

drwx------  2 tomcat tomcat 200 Jul 10 14:46 tomcat/

Content of /home/tomcat/home/tomcat
-rw-r--r-- 1 tomcat tomcat 626 Jul 20 13:21 .bashrc

Content of /etc/passwd
tomcat:x:1007:1001:Tommy The Cat:/home/tomcat/./home/tomcat:/usr/sbin/jk_chrootsh

Content of /home/tomcat/etc/passwd
tomcat:x:1007:1001:Tommy The Cat:/home/tomcat:/bin/bash

I have done a jk_init /home/tomcat

If i su to tomcat, this is the output

su: warning: cannot change directory to /home/tomcat/./home/tomcat: Permission denied

and I get the following in /var/log/messages :

Jul 20 14:15:02 HYPOCRATES su: (to tomcat) bdridder on /dev/pts/0
Jul 20 14:15:02 HYPOCRATES jk_chrootsh[9089]: now entering jail /home/tomcat for user tomcat (1007)
Jul 20 14:15:02 HYPOCRATES jk_chrootsh[9089]: abort, failed to find user 1007 in /home/tomcat/etc/passwd

# uname -a
Linux HYPOCRATES 2.6.18.8-0.5-default #1 SMP Fri Jun 22 12:17:53 UTC 2007 i686 i686 i386 GNU/Linux

The system is an OpenSuse 10.2


Bert

reply via email to

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