ssh - restricted shell

Roland Smith rsmith at xs4all.nl
Wed Mar 30 13:19:45 PST 2005


On Wed, Mar 30, 2005 at 04:02:39PM -0500, Duane Winner wrote:
> Hello,
> 
> Does anybody know the best technique to accomplish this:
> 
> We have a server that we use for mostly internal development, and run an 
> SSH server.
> 
> We have an outsider who we want to allow to ssh into this server and do 
> some work.
> 
> However, because he is an outsider, we don't want him roaming around our 
> server, moving, looking, doing, or anything outside of his own home 
> directory.
> 
> How can I restrict him to his own home directory?

You could try using 'bash -r' as the shell for this user. The -r option
puts bash in "restricted" mode. See bash(1).

Roland
-- 
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
-------------- 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/20050330/13e84888/attachment.bin


More information about the freebsd-questions mailing list