From owner-freebsd-questions Sun Oct 14 16:33:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 9677F37B40F for ; Sun, 14 Oct 2001 16:33:23 -0700 (PDT) Received: from hades.hell.gr (patr530-a148.otenet.gr [212.205.215.148]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f9ENXIv17494; Mon, 15 Oct 2001 02:33:18 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f9ENRL461823; Mon, 15 Oct 2001 02:27:21 +0300 (EEST) (envelope-from charon@labs.gr) Date: Mon, 15 Oct 2001 02:27:21 +0300 From: Giorgos Keramidas To: BSD Freak Cc: FreeBSD Questions Subject: Re: /etc/ftpchroot doesn't work Message-ID: <20011015022721.B61548@hades.hell.gr> References: <12a6aac12a51cb.12a51cb12a6aac@mbox.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <12a6aac12a51cb.12a51cb12a6aac@mbox.com.au> User-Agent: Mutt/1.3.22.1i X-GPG-Fingerprint: C1EB 0653 DB8B A557 3829 00F9 D60F 941A 3186 03B6 X-URL: http://labs.gr/~charon/ 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 BSD Freak wrote: > Hi All.... > > > I have created the file /etc/ftpchroot andd added ftp users to it, is > there anything else I need to do to get it working? It seems that users > can still go anywhere within the file system even when their username > is in this file.... How do you define 'can still go anywhere'? Here's a test I did a few moments ago without having a ftpchroot file: 1 hades % cat /etc/ftpchroot 2 cat: /etc/ftpchroot: No such file or directory 3 hades % ftp localhost 4 Connected to hades. 5 220 hades.hell.gr FTP server (Version 6.00LS) ready. 6 Name (localhost:charon): charon 7 331 Password required for charon. 8 Password: ******** 9 230 User charon logged in. 10 Remote system type is UNIX. 11 Using binary mode to transfer files. 12 ftp> pwd 13 257 "/home/charon" is current directory. 14 ftp> bye 15 221 Goodbye. In line 2 you can see that there is no ftpchroot file. In line 13 the home directory of `charon' is printed as "/home/charon", which is the real home directory of `charon' on this machine. Now let's try with an `ftpchroot' file in place. 1 hades % cat /etc/ftpchroot 2 charon 3 hades % ftp hades 4 Connected to hades. 5 220 hades.hell.gr FTP server (Version 6.00LS) ready. 6 Name (hades:charon): charon 7 331 Password required for charon. 8 Password: 9 230 User charon logged in, access restrictions apply. 10 Remote system type is UNIX. 11 Using binary mode to transfer files. 12 ftp> pwd 13 257 "/" is current directory. 14 ftp> bye 15 221 Goodbye. Note the different output in lines 1-3 and line 14. -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message