Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jul 1999 11:41:05 +0200
From:      Daniel Garcia <daniel@anakine.com>
To:        Dana Huggard <dana@etoile.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Chrooted User login'able ftpd
Message-ID:  <19990706114105.A2494@anakine.com>
In-Reply-To: <378164A6.43580495@etoile.net>; from daniel@anakine.com on Mon, Jul 05, 1999 at 07:06:30PM -0700
References:  <378164A6.43580495@etoile.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jul 05, 1999 at 07:06:30PM -0700, Dana Huggard wrote:
> I would like to setup the ftpd so that when a user logs in with an ftp
> session they are locked into the their home directory. So that when they
> do a "cd /" they are in $HOME.  Looking into it I think I want to use
> the ftpaccess file but this doesn't seem to work. Is there a document
> someone could point me at to do this?  I assume there is, and probably
> even read it once. :)

Hi,
I think after putting "guest" allowing on ftpaccess, you should write a line in /etc/passwd like:

toto:*:1000:1000:toto:/home/toto/./:/bin/false 
				^^^

and /bin/false should be listed in /etc/shells

I've used this with wu-ftpd, aI don't know with the others though...
Hope it helps
Daniel


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?19990706114105.A2494>