lock user to home directory

Olaf Stein stein.175 at osu.edu
Mon Apr 25 11:08:08 PDT 2005

Does not work

I changed the shell with chpass -s /usr/local/bin/bash -r or rbash
Chpass said that those are unvalid arguments but changed it anyway in
But user could not login anymore at all

Any other ideas??


-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Roland Smith
Sent: Monday, April 25, 2005 12:34 PM
To: freebsd-questions at freebsd.org
Cc: Olaf Stein
Subject: Re: lock user to home directory

On Mon, Apr 25, 2005 at 10:51:00AM -0400, Olaf Stein wrote:
> hi everybody
> is there an easy way to lock a user to his home directory??

Try giving them restricted bash (rbash, or bash -r) as shell.

R.F. Smith                           /"\    ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l      \ /    No HTML/RTF in e-mail
http://www.xs4all.nl/~rsmith/         X     No Word docs in e-mail
public key: http://www.keyserver.net / \    Respect for open standards

More information about the freebsd-questions mailing list