Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2007 10:22:19 +0200
From:      =?ISO-8859-1?Q?Nagy_L=E1szl=F3_Zsolt?= <nagylzs@freemail.hu>
To:        L33T Networks <fbsdhelp@l33tnetworks.com>, freebsd-questions@freebsd.org
Subject:   Re: Locking SSH Users to $HOME
Message-ID:  <461C9ABB.70005@freemail.hu>
In-Reply-To: <C2416C49.523%fbsdhelp@l33tnetworks.com>
References:  <C2416C49.523%fbsdhelp@l33tnetworks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 might setup 700 rights for the home directories, then the users 
won't see each other's files. Is it what you want?

If you want to hide all directories, except their homes, then you are in 
trouble. There are some essential files needed to run a "shell". I'm not 
sure, but you might be able to use a special shell that does chroot and 
makes / the home directory?

If you do not want them to run programs, just access their files over 
SSH/SCP, then the "scponlyc" port can be a good solution for you.

Best,

  Laszlo




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?461C9ABB.70005>