[Top][All Lists]

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

Re: [Jailkit-users] Bug when adding user to jail without jk_lsh shell

From: le tan vu
Subject: Re: [Jailkit-users] Bug when adding user to jail without jk_lsh shell
Date: Sat, 22 Jan 2011 10:33:06 +0700

Yes, I did specify another shell (/bin/bash shell) in jail.

Currently, my workable solution is create jail with 2 shells inside:
jk_init -j /home/jail basicshell jk_lsh

([basicshell] is the default configuration section in jk_init.ini of Jailkit version 2.13)

then I add user into jail without error, because jk_lsh exists.
After that, for convenient usage, I have to modify the /home/jail/etc/passwd manually to replace default shell of user from jk_lsh to /bin/bash

If I didn't add jk_lsh shell into jail,
jk_init -j /home/jail basicshell

when adding user into jail system would display error message as I mentioned before "invalid shell, /home/jail/usr/sbin/jk_lsh does not exist".

Please correct me if I miss something.

My system is Centos 5.5, Jailkit 2.13

Many thanks and best regards,

Message: 3
Date: Fri, 21 Jan 2011 17:20:05 +0100
From: Olivier Sessink <address@hidden>
Subject: Re: [Jailkit-users] Bug when adding user to jail without
       jk_lsh shell
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 01/21/2011 01:00 AM, le tan vu wrote:
> Hi,
> I've found that if we create a jail with basicshell without jk_lsh
> shell, when adding a user into jail. System displays error "invalid
> shell, /home/jail/usr/sbin/jk_lsh does not exist".

did you specify a different shell when adding the user? You should
specify a valid shell, jk_lsh is the default, but if it does not exist
in the jail you have to specify something else.


Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/


Jailkit-users mailing list

End of Jailkit-users Digest, Vol 61, Issue 3

Vu Tan Le

reply via email to

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