Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2005 16:44:03 -0400
From:      "Lisa Casey" <lisa@jellico.com>
To:        <freebsd-questions@freebsd.org>
Subject:   Re: ftpchroot
Message-ID:  <006c01c5687c$fc3cbec0$d580a23f@lisac>
References:  <002301c56874$23078e80$59830acf@dennylaptop2>

next in thread | previous in thread | raw e-mail | index | archive | help

----- Original Message ----- 
From: "Denny Jodeit" <tech@flare.net>
To: <freebsd-questions@freebsd.org>
Sent: Friday, June 03, 2005 3:40 PM
Subject: ftpchroot


> Hello,
>
> I'm trying to restrict an ftp user to a particular directory. I've
> written an ftpchroot file, as follows:
>
> Username  /var/spool/ftp/ ./Username/photos
>
>
> After I write the file and restart inetd, I am not able to login to ftp
> with this user account at all.
> I have RTFM and evidently don't get it...
>
> Thanks in advance for any and all suggestions.
>
> Denny


Maybe  you're trying to do something more complicated than I am, but I have 
ftpchroot  working. My /etc/ftpchroot file just consists of a list of 
usernames, one per line. This effectively restricts the ftp user to his/her 
home directory on the server (the home directory, of course, is owned by the 
user in question).  On your system does the user own the directory you are 
trying to ftpchroot him in? Perhaps that is a requirement...

Lisa Casey



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.5.2 - Release Date: 6/3/2005




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006c01c5687c$fc3cbec0$d580a23f>