Re: adding secure accounts for remote users?
On Sat, Feb 14, 2009 at 03:10:07PM -0500, Zach Uram wrote:
> I want to give some friends accounts on my server so that they can
> 1) ssh in to the sever
> 2) have web space on the apache2 webserver such as $HOME/public_html
> so they would be http://www.server.org/~user
> How exactly can I setup these 2 things?
> Also how can I restrict the users to *only* their $HOME directory so
> they cannot cd or ls any other directories or files on my filesystem?
> Running Debian lenny.
If all you're looking to do is give them the ability to SFTP, you can do the
However, if they need a shell prompt, that's a lot harder. You'll have to
create a chroot jail (and note that they aren't perfect). Google for "chroot
ssh" to get more information. Spend a *lot* of time reading up, because it's
not trivial. Also you'll have to put a copy of every command you want your
users to be able to run in the jail.
Overall, if you can convince your users to live with SFTP only, do that. It's
what we've done in one case, and nobody really cares most of the time.
Eric Gerlach, Network Administrator
Federation of Students
University of Waterloo
p: (519) 888-4567 x36329