tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Change to OpenSSH - HomeDirectory



On Fri, Jan 13, 2012 at 10:31:21AM -0500, D'Arcy Cain wrote:
> >work better -- looking up the home directory *again* in the chroot and
> 
> That's basically what my change does.  The chroot happens first and
> then it changes directory as specified in the new directive.

I mean: you normally want to have a /etc/passwd in the chroot for
user/group printing to work. So you could specify a chroot-relative home
directory in that and sftp would honour that.

> >removing the chroot prefix from the home directory.
> 
> Not sure what you mean.  Are you saying to change it in /etc/passwd or
> to change it dynamically after the chroot?  The latter is more or less
> what I do although in a more configurable way.

If the chroot is /u and the home directory is /u/eve, drop the prefix
after chrooting and use /eve as home directory. That's what many daemons
do for configuration files.

Joerg


Home | Main Index | Thread Index | Old Index