Subject: chroot

From: Terry Esau <[email-masked]>
Date: Tue, 9 Apr 1996 08:33:39 -0600

First of all I would like to Thank the Garry & Brent for responding
to my last message.  Thank-You 

wu-ftpd-2.4.2-beta-10
solaris 2.4
gcc 2.5.8

This version seems to be working fine over here.

only had a couple errors during compilation
something about MAXHOSTNAME twice

I have setup 4 virtual domains all running wu-ftpd 

When a real user logs in how do I chroot him to his
home directory..
I have changed his passwd entry in /etc/passwd
we he logs in he gets cded to his home dir put he can still
cd to root.  
What have I missed here !
I tried changing the ~ftp/etc/passwd file also but somewhere I'm
still not quite sure what I'm doing wrong.

Any pointers would be greatly appreciated..

Thank-You
============================================================
= Terry Esau        Main address:       [email-masked] =
= kneehill internet services       http://www.kneehill.com =
========= Linden ====== Alberta ======== Canada ============

---

From: Lee McLoughlin <[email-masked]>
Date: Tue, 09 Apr 1996 18:12:35 +0100

> still not quite sure what I'm doing wrong.

That probably isn't what you want to do.  Remember when you chroot
*every* filestore access is now relative to the chrooted location.

So if they were chroot'ed to their own home, for example /homes/username,
and then did a cd to their home then that would be relative to /homes/username
so would really be:
	/homes/username/homes/username
same for accessing /etc/passwd, /dev/tcp .....

--
Lee McLoughlin.                         Phone: +44 171 594 8388
IC-Parc, Imperial College,              Fax:   +44 171 594 8449
South Kensington, London. SW7 2BZ. UK.  Email: [email-masked]