View Single Post

   
  #5 (permalink)  
Old 02-19-2008, 07:18 AM
Walt R
 
Posts: n/a
Default Re: Lock users in home directories?

LinuxSneaker <mgmanry@linuxorbit.com> wrote in message news:<aInKb.1386$lE.1116982@news3.news.adelphia.ne t>...
> Morten Lundstrøm wrote:
>
> > Hi
> >
> > Is there a way to lock users in their home directories allowing them only
> > to access sub directories in their home dir and a directory with tools
> > that i've specified?
> > I've tried but can't figure it out :-|
> >
> > Thanks
> > Morten
> >

> Try the command "chroot".

**

set up their login shell as bash -r, restricted shell
set them up with a menu of allowed tasks with a trap for
the interrupts, so that any attempt to exit the menu will
log them out. Setting this up within a chroot jail would
be more secure.

This is an interesting article about chroot jail:
http://www.linux-mag.com/2002-12/chroot_01.html

Walt R.
Reply With Quote