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