Hmm, I haven't messed with jail in a while... Well, did you add the jailed user to the regular system with useradd? In other words, there are two steps to adding a jailed user: add the user to the regular system with useradd and a shell of /usr/bin/jail and then add the user to jail with addjailuser and a shell of /bin/bash. Oh, and the /usr/bin/jail shell needs to be in /etc/shells.

If that doesn't help, look around on the jail website and try the mailing list.

good luck,

Ben



[EMAIL PROTECTED] wrote:
Hi,

I am trying to addjailuser with following syntax

addjailuser /home/chroot/jail /home/testys /bin/bash testys

and I am getting error:

addjailuser
A component of Jail (version 1.9 for linux)
http://www.gsyc.inf.uc3m.es/~assman/jail/
Juan M. Casillas <[EMAIL PROTECTED]>

Adding user testys in chrooted environment /home/chroot/jail
        Error: Can't add the user.
Done.

I already created jail env and added sw also

Any idea ?

Thanks
YS


This is in portage and I've used it a bit... pretty straightforward.

http://www.jmcresearch.com/projects/jail/

Just remember that *everything* needed by the user has to be in the
jail... if you use any
executable (apache, php, mysql, etc.) outside the jail, it is no longer
secure.

b


Yogesh Sharma wrote:

Hi,

Can someone point me to documentation for creating chrooted virtual ssh
only users.

Thanks
YS


--
[email protected] mailing list





--
[email protected] mailing list

Reply via email to