Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2000 06:29:28 +0100
From:      Marcin Krasowski <gorg@weblab.pl>
To:        Sheldon Jones <freebsd@hobbydump.com>
Cc:        freebsd-security@FreeBSD.ORG
Subject:   Re: chroot and ftpd
Message-ID:  <3A14C238.19C7C60C@weblab.pl>
References:  <20001116175348.A76193@hobbydump.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Sheldon Jones wrote:
> 
> Does anyone know of a way to have the chroot function in ftpd lock a user into
> a sub-directory under their user directory. I would like a way to keep the
> users in a sub-directory under their root dir.
> 
> Ncftpd has this feature but I really like the ftpd that comes with freebsd.
> In ncftpd you use (u-restrict-mode=subdir-of-homedir userfiles) this will
> restrict the user to the sub-derectory userfiles under their account.
> 
> Thank you for your time,
> Sheldon Jones
> iHighway.net
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-security" in the body of the message

Just put the name of the user into the /etc/ftpchroot file (create it if
You dont have one).
There is a problem with reading usernames while doing ls which comes
from the absence of /etc/passwd and /etc/group in chrooted enviroment 
(I hope You've already guessed how to fix it :) but the rest id fully
functional.

Gorg

PS. Hello to the group. it's my first posting here


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




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