|Subject:||[Jailkit-users] RE: How to launch a xtermintothejail (FOUCHECOURT FREDERIC)|
|Date:||Mon, 19 Mar 2007 11:41:48 +0100|
I have succeed to open a X11 windows with xterm and rxvt.
The problem was linked with the X server in the jail.
In /home/jail/usr/X11R6/lib/X11/locale, I have changed the right of the 3 following files from
-r--r--r-- 1 root root 24608 Sep 6 2006 compose.dir
-r--r--r-- 1 root root 57819 Sep 6 2006 locale.alias
-r--r--r-- 1 root root 30443 Sep 6 2006 locale.dir
-rw-rw-rw- 1 root root 24608 Sep 6 2006 compose.dir
-rw-rw-rw- 1 root root 57819 Sep 6 2006 locale.alias
-rw-rw-rw- 1 root root 30443 Sep 6 2006 locale.dir
And windows appears...
Unfortunately, when I launch an xterm the following error message appears in the xterm :
"xterm: Could not exec /usr/sbin/jk_chrootsh: No such file or directory" and the X11 windows is closed after 2 or 3 second.
For rxvt, the windows appears but no prompt appears.
So I launch the following command ...
address@hidden etc]# jk_cp /home/jail /usr/sbin/jk_chrootsh
copying/linking /usr/sbin/jk_chrootsh to /home/jail/usr/sbin/jk_chrootsh
I made the test again, no xterm appears and I obtain the following message :
address@hidden ~]$ xterm
For information, my passwd file in /home/jail/etc contains the following lines :
I'm not used restricted shell for my user in the jail.
Have you an idea ?
From: address@hidden [mailto:address@hidden On Behalf Of FOUCHECOURT FREDERIC
Sent: 19 March 2007 10:26
Subject: RE: [Jailkit-users] RE: How to launch a xtermintothejail (FOUCHECOURT FREDERIC)
Hi Peter and Olivier,
My operating system is Redhat 4 update 4 (REHL4U4)
From: address@hidden [mailto:address@hidden On Behalf Of Peter Veerman
Sent: 17 March 2007 16:48
Subject: Re: [Jailkit-users] RE: How to launch a xterm intothejail (FOUCHECOURT FREDERIC)
I'm just wondering (and hope that I do not have missed it): "what kind of operating system are you running?"
FOUCHECOURT FREDERIC schreef:
Hi Olivier, I have installed the tool rxvt and use the commande strace and jk_init to try to correctly install it. My rxvt section in the file /etc/jailkit/jk_init.ini is : [rxvt] comment = rxvt to replace xterm executables = /usr/local/bin/rxvt directories = /usr/X11R6/lib, /usr/lib/locale, /lib/tls devices = /dev/ptmx I encounter the same problem than xterm. I create the device /dev/ptyp0, /dev/ttyp0 with the command mknod but I have the following error message : "Inappropriate ioctl for device" I delete the /home/jail/dev directory created with command jk_init and jk_cp and use the 2 following mount command : mount -o bind /dev /home/newroot/dev/ mount -o bind /dev/pts /home/newroot/dev/pts No success :-( Have you an idea ? Regards, Fred _______________________________________________ Jailkit-users mailing list address@hidden http://lists.nongnu.org/mailman/listinfo/jailkit-users
|[Prev in Thread]||Current Thread||[Next in Thread]|