guest-root

Richard BOULAIS <[email protected]> Wed, 14 Sep 2005 21:18:34 +0200 (CEST)
Newsgroups gmane.network.ftp.wuftpd.user
Message-ID <[email protected]>
--0-1121770256-1126725514=:87427
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

In ref of http://www.wu-ftpd.org/HOWTO/addendum.guest.HOWTO.htm
I would like to have all users chroot to a common point. So I use the fol=
lowing clause:
    guest-root /home/users
Then my chroot-local password file is /home/users/etc/passwd.
And the user's initial directory (and "home" for ~ notation) is taken fro=
m the chroot-local password file :
-------------------------------- /home/users/etc/passwd :
root:*:0:0:::
bin:*:1:1:::
operator:*:11:0:::
ftp:*:14:50:::
nobody:*:99:99:::
prologue:*:500:100::/prologue/tmp:
-------------------------------------------------------------------------=
----
=20
BUT it is not working : all users are chrooted in /home/users,  and same =
place for initial directory, and have a look on everyone's directory.
=20
As example above, I want the user "prologue" 's initial directory, and "h=
ome" to be /home/user/prologue/tmp.
=20
Any idea ?
-------------------------------------------------------- /etc/ftpaccess :
class   all   real,guest,anonymous  *
limit   all   10   Any              /etc/msgs/msg.dead
readme  README*    login
readme  README*    cwd=3D*
message /welcome.msg            login
message .message                cwd=3D*
compress        yes             all
tar             yes             all
shutdown /etc/shutmsg
# specify which groups will be treated as "guests".
guestgroup users
email root@localhost
guest-root /home/users

=20

	=09
---------------------------------
 Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messeng=
er
 T=E9l=E9chargez le ici ! =20
--0-1121770256-1126725514=:87427
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<DIV>In ref of <A href=3D"http://www.wu-ftpd.org/HOWTO/addendum.guest.HOW=
TO.htm">http://www.wu-ftpd.org/HOWTO/addendum.guest.HOWTO.htm</A></DIV>
<DIV>I would like to have all users chroot to a common point. So I use th=
e following clause:<BR>&nbsp;&nbsp;&nbsp; guest-root /home/users</DIV>
<DIV>Then&nbsp;my chroot-local password file is /home/users/etc/passwd.</=
DIV>
<DIV>And&nbsp;the user's initial directory (and "home" for ~ notation) is=
 taken from the chroot-local password file :</DIV>
<DIV>-------------------------------- /home/users/etc/passwd :</DIV>
<DIV>root:*:0:0:::<BR>bin:*:1:1:::<BR>operator:*:11:0:::<BR>ftp:*:14:50::=
:<BR>nobody:*:99:99:::<BR>prologue:*:500:100::/prologue/tmp:</DIV>
<DIV>--------------------------------------------------------------------=
---------</DIV>
<DIV>&nbsp;</DIV>
<DIV>BUT it is not working :&nbsp;all users are chrooted in /home/users,&=
nbsp; and same place for initial directory, and have a look on everyone's=
 directory.</DIV>
<DIV>&nbsp;</DIV>
<DIV>As example above,&nbsp;I want the user "prologue" 's initial directo=
ry, and "home"&nbsp;to be /home/user/prologue/tmp.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any idea ?</DIV>
<DIV>-------------------------------------------------------- /etc/ftpacc=
ess :</DIV>
<DIV>class&nbsp;&nbsp; all&nbsp;&nbsp; real,guest,anonymous&nbsp; *<BR>li=
mit&nbsp;&nbsp; all&nbsp;&nbsp; 10&nbsp;&nbsp; Any&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/msgs/msg.dea=
d<BR>readme&nbsp; README*&nbsp;&nbsp;&nbsp; login<BR>readme&nbsp; README*=
&nbsp;&nbsp;&nbsp; cwd=3D*</DIV>
<DIV>message /welcome.msg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp; login<BR>message .message&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cwd=3D*<BR>=
compress&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all<BR>tar&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; yes&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; all<BR=
>shutdown /etc/shutmsg<BR># specify which groups will be treated as "gues=
ts".<BR>guestgroup users<BR>email&nbsp;<A href=3D"mailto:root@localhost">=
root@localhost</A><BR>guest-root /home/users<BR></DIV>
<DIV>&nbsp;</DIV><p>
		<hr size=3D1>=20
<b><font color=3D#FF0000>Appel audio GRATUIT</font> partout dans le monde=
</b> avec le nouveau Yahoo! Messenger<br>=20
<a href=3D"http://us.rd.yahoo.com/messenger/mail_taglines/default/*http:/=
/fr.messenger.yahoo.com">T=E9l=E9chargez le ici !</a>=20
=20

--0-1121770256-1126725514=:87427--