Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Mar 2005 18:51:36 +0200
From:      "albi@scii.nl" <albi@scii.nl>
To:        freebsd-questions@freebsd.org
Subject:   Re: Jails ....
Message-ID:  <20050327185136.0b4d652b.albi@scii.nl>
In-Reply-To: <001a01c532e9$42017e10$6401a8c0@GRANT>
References:  <001a01c532e9$42017e10$6401a8c0@GRANT>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 27 Mar 2005 11:23:05 -0500
"Grant Peel" <gpeel@thenetnow.com> wrote:

> It seems to me, that for all the work of scponly shell to be setup,
> why not  just create a simple jail and allow ssh teminal access for
> users?
> 
> That having been said, is it possible to set up jails for existing
> users  that include only simple commands, like:
> 
> ls
> mkdir
> rmdir
> pico
> rm
> chown
> chmod
> 
> if so, are there any guru's who would like to type and explanation and
> step  by step how to here?

i can think of one possible solution for this :

1) you create the jail (see : man jail [with one exception, i prefer a
make world for the host and then use a make installworld for the jails
instead of make world again for the jail])

2) make /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin
only accessible for root (and users for possible other services) and 
set the PATH to include a new dir e.g. /newbin/ which is accessible for
users, and copy the shell (and possible other basic commands) they need
in that dir too



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050327185136.0b4d652b.albi>