From owner-freebsd-questions Mon Feb 9 09:29:23 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA09614 for questions-outgoing; Mon, 9 Feb 1998 09:29:23 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dove.peace.com.my (peace.com.my [202.184.153.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA09599 for ; Mon, 9 Feb 1998 09:29:16 -0800 (PST) (envelope-from panda@peace.com.my) Received: from lovebox (love.com.my [202.184.153.17]) by dove.peace.com.my (8.8.5/8.8.5) with SMTP id BAA15942 for ; Tue, 10 Feb 1998 01:14:20 +0800 (SGT) Date: Tue, 10 Feb 1998 01:14:20 +0800 (SGT) Message-Id: <3.0.32.19980210013645.00947100@peace.com.my> X-Sender: panda@peace.com.my (Unverified) X-Mailer: Windows Eudora Pro Version 3.0 (32) To: freebsd-questions@FreeBSD.ORG From: chas Subject: Sorry - read the manual for the 4th time and finally got it. Re: does chroot require any extra config ? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sorry. Sod's law - spent all day trying to sort it out and then as soon as I post, I notice I haven't got the guestgroup in ftpaccess. Apologies Chas >Setting up WU_FTP and learning why so many questions were >posted concerning it in the past. Seems to be working fine >except my security is non-existent. > >I've set chroot in /etc/passwd as follows : >fred:*:1001:100:fred:/var/websites/./fredsite:/etc/ftp-only > >This works fine. When fred ftps in, he is initially in >/var/websites/fredsite >If I understand this correctly, chroot means that he >sees /var/websites as / >So, he shouldn't be able to go anywhere else but subdirectories >of /var/websites. > >However, he can "cd .." from /var/websites ; "pwd" shows that >he is in "/var/websites" and he can also "cd /etc" directly. > >What else needs to be set to get chroot to run properly ? > >Thank you, > >chas > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe questions" in the body of the message