jailkit-users
[Top][All Lists]
Advanced

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

Re: [Jailkit-users] RE: How to launch a xtermintothejail (FOUCHECOURT FR


From: Olivier Sessink
Subject: Re: [Jailkit-users] RE: How to launch a xtermintothejail (FOUCHECOURT FREDERIC)
Date: Mon, 19 Mar 2007 23:07:08 +0100
User-agent: Icedove 1.5.0.9 (X11/20061220)

FOUCHECOURT FREDERIC wrote:
> Hi,
>  
> 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
>  
> To
>  
> -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...

very weird... and, since you made the files world writable, are the
files actually changed?

> *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.

try `xterm -e /bin/bash`

it happens because jk_chrootsh is your shell. However, what is the shell
in your jail in <jail>/etc/passwd ?

if you are running nscd you can stop it and see if that solves the
problem. (if xterm asks nscd for the shell to use it will return the
shell in the real /etc/passwd, which is jk_chrootsh and not a real
shell. If xterm cannot use nscd it will look in <jail>/etc/passwd for
your shell)

> address@hidden etc]# jk_cp /home/jail /usr/sbin/jk_chrootsh

jk_chrootsh is not a normal shell, it does a chroot() call and executes
your real shell. So you do not need in inside your jail, and it is not
useful inside a jail either.

`man jk_chrootsh`

regards,
        Olivier




reply via email to

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