Subject: Re: chroot

From: Terry Esau <[email-masked]>
Date: Tue, 9 Apr 1996 11:55:29 -0600

Thank-you for the reply Lee McLoughlin.

If I should not chroot him to his home dir then 
How do I setup the user to allow him access to his home directory.
ie: his web pages
I don't want him to beable to cd to / or anywhere under his directory.
I have him setup in /export/home/username
my anonymous ftp is setup under /export/home/ftp

At 06:12 PM 4/9/96 +0100, you wrote:
>Terry Esau wrote:
>> 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.
>
>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 .....
============================================================
= Terry Esau        Main address:       [email-masked] =
= kneehill internet services       http://www.kneehill.com =
========= Linden ====== Alberta ======== Canada ============