Changing sftp user's home directory

keith smith klsmith2020 at yahoo.com
Wed Aug 18 04:15:05 MST 2010



Thanks!

------------------------

Keith Smith

--- On Tue, 8/17/10, Bryan O'Neal <Bryan.ONeal at TheONealAndAssociates.com> wrote:

From: Bryan O'Neal <Bryan.ONeal at TheONealAndAssociates.com>
Subject: Re: Changing sftp user's home directory
To: "Main PLUG discussion list" <plug-discuss at lists.plug.phoenix.az.us>
Date: Tuesday, August 17, 2010, 7:08 PM

Ok. If all you care about is the users home dir you can ignore sshd
and set the users home dir; as in useradd -other_option -h /some/dir.
Use ACLs for file level acces conttole and set the users shell to
none. Not as good as a chariot jail but some what acceptable and easy
to inplament.
Wish I could provide detail but I am on my blackberry rite now.

On 8/17/10, Jason Holtzapple <ml at bitflip.net> wrote:
> On 08/17/2010 12:58 PM, keith smith wrote:
>> I'm running centOS 5 something. I configure SFTP and removed FTP.  Now I
>> need to add a user, lets say billybob.  By default his home directory
>> would be /hone/billybob.  I need to remove that and give him access to
>> only one directory within the docroot of a vhost.  Say the directory
>> /home/someVhost/public_html/documents/
>
> Unfortunately the version of openssh included in Centos 5 doesn't have
> the functionality you need (specifically ChrootDirectory and friends).
> One way to solve this by installing a newer copy of openssh and
> disabling the old.
>
>

-- 
Sent from my mobile device
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20100818/7708eb2b/attachment.html>


More information about the PLUG-discuss mailing list