From owner-freebsd-questions Tue Apr 9 4:54:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from service.sh.cvut.cz (service.sh.cvut.cz [147.32.127.214]) by hub.freebsd.org (Postfix) with ESMTP id C9FDA37B41C for ; Tue, 9 Apr 2002 04:54:33 -0700 (PDT) Received: from veverka.sh.cvut.cz (veverka.sh.cvut.cz [147.32.127.216]) by service.sh.cvut.cz (Postfix) with ESMTP id 8D3001F1C8; Tue, 9 Apr 2002 13:54:17 +0200 (CEST) Received: (from buki@localhost) by veverka.sh.cvut.cz (8.9.3/8.9.2) id NAA21578; Tue, 9 Apr 2002 13:54:30 +0200 (CEST) (envelope-from buki) Date: Tue, 9 Apr 2002 13:54:30 +0200 From: Buki To: Unix Newbie Cc: freebsd-questions@FreeBSD.ORG Subject: Re: changing ftpd's anonymous root directory Message-ID: <20020409135430.B19376@veverka.sh.cvut.cz> References: <1017952363.8817.36.camel@debian> <1ZT5VFBj31r8Ewn9@caomhin.demon.co.uk> <1018164982.1354.12.camel@debian> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <1018164982.1354.12.camel@debian>; from unix_newbie@earthlink.net on Sat, Apr 06, 2002 at 11:36:11PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Apr 06, 2002 at 11:36:11PM -0800, Unix Newbie wrote: > > > Hello again, > > I have yet another question for you. I have been trying to change > the root directory for anonymous logins with the ftpd server. I have > run into difficulties though because I can't seem to find the config > file. I have changed the directorys in the passwd file and the > master.passwd file in the etc directory and grep doesn't show anything > else that has anything to do with ftp login in the /etc folder. I read > the man page and it said something about a ftpchroot file that could be > created, however, that seemed to require users have a password, which I > would like to avoid. Unfortunately I haven't been able to find much on > this with google or the freebsd site. > man ftpd 6. If the user name is ``anonymous'' or ``ftp'', an anonymous ftp account must be present in the password file (user ``ftp''). In this case the user is allowed to log in by specifying any password (by convention an email address for the user should be used as the password). When the -S option is set, all transfers are logged as well. In the last case, ftpd takes special measures to restrict the client's access privileges. The server performs a chroot(2) to the home directory of the ``ftp'' user. ...etc... so anonymous user chroots to directory specified as home directory of user 'ftp' in /etc/passwd (you might want to change it via 'vipw' as this command automaticaly rebuilds master.passwd Buki > > > The long short of it is, where do I make that change? I accidently > specified the wrong dir when I set up the system and I just want to fix > that. > > > As always, docs, urls, pretty much anything will get me on my way! > Thanks in advance for the help, I really appreciate it! > > > Terry. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- PGP public key: http://dev.null.cz/buki.asc /"\ \ / ASCII Ribbon Campaign X Against HTML & Outlook Mail / \ http://www.thebackrow.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message