Re: ssh - restricted shell

From: Roland Smith (rsmith_at_xs4all.nl)
Date: 03/30/05

  • Next message: wizlayer: "Re: ssh - restricted shell"
    Date: Wed, 30 Mar 2005 23:19:42 +0200
    To: freebsd-questions@freebsd.org
    
    
    

    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 message: wizlayer: "Re: ssh - restricted shell"

    Relevant Pages