Re: Lock users in home directories? "Morten Lundstrøm" <semizealot@iname.hej> writes:
>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 :-|
You can maybe try giving them a restricted shell. If it doesn't
exist, make "rbash" a symlink to bash, and then give the user "rbash"
as a shell. Then use ".profile" to set an initial PATH. They won't
be able to change their PATH nor cd to a different directory.
There are probably loopholes in the restrictions, but it may do well
enough for your needs. |