Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Oct 2002 09:45:34 +0100
From:      James Green <james@stealthnet.co.uk>
To:        Jason Morgan <jwm-freebsd@sentinelchicken.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: SSH/FTP Access
Message-ID:  <3DA68FAE.9050204@stealthnet.co.uk>
References:  <200210100428.g9A4SGU20412@mx.datasync.com> <20021010153155.GB80376@sentinelchicken.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Jason Morgan wrote:
> On Wed, Oct 09, 2002 at 11:28:16PM -0500, DiaDems@Datasync.com wrote:
> 
>>Just wondering is there a way to limit SSH access (when adding a user or period) so that user can only use SSH to access or effect their home directory?
> 
> With ssh2 you can use chroot to limit access to other dirs. In your config:
> 
> ChRootUsers user1,user2,user3
> 
> you can also restric groups the same way:
> 
> ChRootGroups group1,group2,group3
> 
> Just don't forget to hardlink any system files into their directories so they can actually use their accounts. 
> 
> Note: I've never done this myself and I just pulled the 'how-to' from O'Reilly's SSH book. This is a great resource,
> and I recommend you get a copy.

Just occassionally, the kind souls on freebsd-users come up with real 
gems of information. Thank you, I've been looking for a solution like 
this for weeks!

James



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DA68FAE.9050204>