public inbox for gentoo-server@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ben Munat <bent@munat.com>
To: gentoo-server@lists.gentoo.org
Subject: Re: [gentoo-server] Virtual ssh users
Date: Tue, 06 Sep 2005 09:41:28 -0700	[thread overview]
Message-ID: <431DC6B8.6030608@munat.com> (raw)
In-Reply-To: <2663.64.81.81.51.1125986925.squirrel@webemail.catprosystems.net>

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



ysharma@catprosystems.com 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 <assman@gsyc.inf.uc3m.es>
> 
> 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
>>>
>>
>>--
>>gentoo-server@gentoo.org mailing list
>>
>>
> 
> 
> 
-- 
gentoo-server@gentoo.org mailing list



  reply	other threads:[~2005-09-06 16:44 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-06  0:09 [gentoo-server] Virtual ssh users Yogesh Sharma
2005-09-06  0:15 ` Jeremy Brake
2005-09-06  0:26 ` Ben Munat
2005-09-06  6:08   ` ysharma
2005-09-06 16:41     ` Ben Munat [this message]
2005-09-06 21:53       ` [gentoo-server] prioritising security updates Jeremy Brake
2005-09-06 22:14         ` Paul Kölle
2005-09-07  6:12         ` Michael Irey
2005-09-07  6:48           ` W.Kenworthy
2005-09-07 15:28             ` Matthias Bethke
2005-09-07 22:56               ` William Kenworthy
2005-09-08 12:19                 ` Matthias Bethke
2005-09-07 12:21         ` xyon
2005-09-08 14:39         ` A. Khattri
2005-09-08 14:43       ` [gentoo-server] Virtual ssh users A. Khattri
  -- strict thread matches above, loose matches on Subject: below --
2005-09-09  4:53 Yogesh Sharma
2005-09-09  9:12 ` Paul Kölle
2005-09-21 16:28   ` A. Khattri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=431DC6B8.6030608@munat.com \
    --to=bent@munat.com \
    --cc=gentoo-server@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox