Re: chrooted users: how to see directory content ?

Stéphane Bentebba <[email protected]> Mon, 28 Feb 2005 20:06:42 +0100
Newsgroups gmane.network.ftp.wuftpd.user
Message-ID <[email protected]>
Aldo Podavini schrieb:

> Hi all.
> When I put a user into a guest group (which is the only way you can 
> force him to be chrooted, if I'm not wrong), he cannot see his 
> directory content (i.e.: the server doesn't respond on a LIST 
> command). He can upload/download files (if he knows filenames), but he 
> cannot see them.
>
> Where am I wrong ?!?
>
> Thanks
> Aldo
>
>
put this in your ftpaccess file :
<<
    guest-root /var/wu-ftp
 >>
this line specify that the home user is in this directory
take care to create the user's home dir (mkdir /var/wu-ftp/toto for the 
toto user)

now, if the user really can't see his file, check the mask
<<
    defumask 006
 >>
or something else (check man umask : 0666 & ~022 = 0644 = rw-r--r-- )
disabling the visibility of files transfered is usefull for anonymous 
connection and this is made with a couple of lines like :
<<
    anonymous-root /var/wu-ftp/ftp
    upload        * /pub/incoming yes     ftpadmin ftpadmin       
0222    nodirs
 >>