From owner-freebsd-questions Sat May 8 1:21:15 1999 Delivered-To: freebsd-questions@freebsd.org Received: from web.sciencelink.org.za (web.sciencelink.org.za [196.21.214.5]) by hub.freebsd.org (Postfix) with ESMTP id 77864155D4 for ; Sat, 8 May 1999 01:21:06 -0700 (PDT) (envelope-from jacques@web.sciencelink.org.za) Received: from localhost (jacques@localhost) by web.sciencelink.org.za (8.8.8/8.8.8) with SMTP id KAA24666; Sat, 8 May 1999 10:13:35 +0200 (SAST) (envelope-from jacques@web.sciencelink.org.za) Date: Sat, 8 May 1999 10:13:35 +0200 (SAST) From: Jacques Marneweck To: dissonant Cc: freebsd-questions@FreeBSD.ORG Subject: Re: chroot? or...? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 7 May 1999, dissonant wrote: > How do i get a user's home directory to show up as / when they log in via > ftp? Thanks... Easy. ;-) Edit /etc/ftpchroot and add that user's name into the file. eg: --- snipbit from /etc/ftpchroot --- possum pjc --- end snipbit --- Then in the users home directory you create a directory "bin" and copy /bin/date and /bin/ls into that directory. Chmod 555 those files and then chown username.group eg. chown pjc.pjc /usr/home/pjc/bin/* Hope this helps. Regards Jacques > > ____________________________________________________________________________ > michael lieberman d i s o w n e d @ f l i t r . n u http://flitr.nu/ > ____________________________________________________________________________ > Pourtant, j'etais fort mauvais poete. Still, I was a very bad poet. > Je ne savais pas aller jusqu'au bout. I couldn't go to the end. > J'avais faim. I was hungry. > -- Blaise Cendrars > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message