Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Feb 1998 00:35:18 +0800 (SGT)
From:      chas <panda@peace.com.my>
To:        freebsd-questions@FreeBSD.ORG
Subject:   does chroot require any extra config ?
Message-ID:  <3.0.32.19980210005744.00941860@peace.com.my>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.32.19980210005744.00941860>