Creating a Locked user that has access to one dir

Rick Stevens ricks at alldigital.com
Fri Nov 8 18:06:55 UTC 2013


On 11/08/2013 06:02 AM, Greg Woods issued this missive:
> On Fri, 2013-11-08 at 08:29 +0000, Ian Malone wrote:
>
>> http://www.techrepublic.com/blog/linux-and-open-source/chroot-users-with-openssh-an-easier-way-to-confine-users-to-their-home-directories/
>
> That looks a lot less kludgy than my "third party hack". I don't think
> this was available when I did it (back in my Solaris days, mid-90's or
> so).

You can chroot an scp user through the standard sshd_config options
"Match User" and "ChrootDirectory" options (see "man sshd_config"). You
can sort of think of it as a ssh/scp chroot jail like FTP. We do it all
the time.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks at alldigital.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-               500: Internal Fortune Cookie Error                   -
----------------------------------------------------------------------


More information about the users mailing list