Subject: wu-ftpd and chroot problem

From: Michalas Othon <[email-masked]>
Date: Wed, 12 Jun 1996 10:52:02 +0300

Why dont work the chroot ????????????

------------------------------------/ /etc/shells /-----------------
/bin/true
-----------------------------------/***********/--------------------

-----------------------------------/ /etc/passwd /------------------
genesis:7nHvk/plhW3Y1:505:100:Genesis:/home/ftp//.//genesis/:/bin/true
----------------------------------/************/--------------------

---------------------------------/ /etc/group /----------------------
genesis:*:504:
---------------------------------/************/----------------------

----------------------------------/ ftpaccess /---------------------
loginfails 2
class   local   real,guest,anonymous *.domain 0.0.0.0
class   remote  real,guest,anonymous *
limit   local   20  Any                 /etc/msgs/msg.toomany
limit   remote  20 SaSu|Any1800-0600    /etc/msgs/msg.toomany
limit   remote  60  Any                 /etc/msgs/msg.toomany
readme  README*    login
readme  README*    cwd=*
message /welcome.msg            login
message .message                cwd=*
compress        yes             local remote
tar             yes             local remote
# allow use of private file for SITE GROUP and SITE GPASS?
private         yes

# passwd-check  <none|trivial|rfc822>  [<enforce|warn>]
passwd-check    rfc822  warn
log commands real
log transfers anonymous,real inbound,outbound
shutdown /etc/shutmsg
# all the following default to "yes" for everybody
delete          no      guest,anonymous         
# delete permission?
overwrite       no      guest,anonymous        
 # overwrite permission?
rename		no	guest,anonymous		
# rename permission?
chmod           no      anonymous              
 # chmod permission?
umask           no      anonymous               
# umask permission?
# specify the upload directory information
upload  /home/ftp  *             no
upload  /home/ftp  /incoming     yes     root    daemon  0600 dirs
upload  /home/ftp  /bin          no
upload  /home/ftp  /etc          no
# directory aliases...  [note, the ":" is not required]
alias   inc:    /incoming

# cdpath
cdpath  /incoming
cdpath  /pub
cdpath  /
cdpath /genesis
# path-filter...
path-filter  anonymous  /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
path-filter  guest      /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
path-filter  genesis    /etc/pathmsg  ^[-A-Za-z0-9_\.]*$  ^\.  ^-
# specify which group of users will be treated as "guests".
guestgroup ftponly genesis

#genesis ftponly
email user@hostname
---------------------/************/-------------------------

Brgs
Othon Michalas

---

From: Michalas Othon <[email-masked]>
Date: Wed, 12 Jun 1996 12:21:24 +0300

>genesis:7nHvk/plhW3Y1:505:100:Genesis:/home/ftp//.//genesis/:/bin/true

########################################################
Oh! God

The problem is HERE !!!

>---------------------------------/ /etc/group /----------------------

This  is the wrong /etc/passwd   
The right  /etc/passwd is :

genesis:*:504:genesis

#########################################################

># allow use of private file for SITE GROUP and SITE GPASS?

# passwd-check  <none|trivial|rfc822>  >[<enforce|warn>]
upload  /home/ftp  *             no

# cdpath
cdpath  /incoming

#genesis ftponly

Brgs
Othon Michalas