Locking SSH Users to $HOME

Roland Smith rsmith at xs4all.nl
Wed Apr 11 08:47:53 UTC 2007

On Wed, Apr 11, 2007 at 10:22:19AM +0200, Nagy László Zsolt wrote:
> L33T Networks wrote:
> >Using the SSHD server, how can I lock users SSH'ing into a box into their
> >home directory, without having access to the /usr/home directory as a 
> >whole?
> >  

You could set them up with a restricted shell. Use e.g. 'bash -r' or the
equivalent 'rbash'. See the RESTRICTED SHELL section in the bash manual
to understand what it does.

R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070411/27446df9/attachment.pgp

More information about the freebsd-questions mailing list