Re: Lock users in home directories? On Tue, 6 Jan 2004 01:04:11 +0100, Morten Lundstrøm <semizealot@iname.hej> 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
>
You can replace their shell in /etc/passwd with a script that will permit
only certain commands to be run.
A case menu would work very well for this purpose.
Choose one these commands or log out....
trap "kill -9 $$" INT TSTP
would keep them from using Ctrl-c or Ctrl-z to get out of the menu
AC |