Re: can't see directories
Bob Luckin <[email protected]> Mon, 29 Mar 2004 16:41:14 -0600
| Newsgroups | gmane.network.ftp.wuftpd.user |
|---|---|
| Message-ID | <[email protected]> |
Here's one possibility... If your FTP client is issuing NLST (as opposed to LIST) when you type 'ls', then that would explain why directories are not listed. NLST is only supposed to return items which can be obtained by a RETR command, which is basically files (and links to files); you can't retrieve directories per se. This is a FAQ :- http://www.wu-ftpd.org/wu-ftpd-faq.html#QA85 If this is your problem, and you absolutely must be able to use this FTP client and type 'ls' instead of 'dir' or 'ls -al', then you can recompile with the --enable-nlst-dirs option set (run configure, specifying this one along with all the others which were used to compile the binary you are currently using, then run make to recompile the daemon). Note that implementing the non-RFC-compliant behaviour for NLST may break the 'mget' command. You pays your money and you takes your choice. Good luck ! Cheers, Bob On Mon, Mar 29, 2004 at 01:18:14PM -0600, Sean R wrote: > Hello > > Hope everyone had a good weekend. I have been working my brain in overdrive the last week trying to get this to work. I can not see dictories when using the 'ls' command. If i allow root to login i can see all the files and directorys if i use 'ls -la', but can only see one file if I us 'ls'. I am running Redhat 9. I did not use the redhat RPM since I wanted the latest version, and compling it was way more fun! > > what I want is to allow anonymous access, but when I login with an anonymous user, the 'ls' command only shows my message.msg file, not the directorys. ls -la for the anonymous user shows: > 200 PORT command successful. > 150 Opening ASCII mode date connection for /bin/ls. > 266 Transfer complete > > other then that everything is running great, I am new to linux and did not have to much trouble compling and installing it. > > Cheers > Sean > > *********Start of ftpaccess***************** > class nonclass anonymous * > class nonanon real,guest * > > > limit nonanon 0 wk0000-2359 /sean/ftp/.norealusers > > > loginfails 3 > > chmod no anonymous > delete no anonymous > overwrite no anonymous > rename no anonymous > passwd-check rfc822 enforce > > upload /sean/ftp * no > upload /sean/ftp /uploads yes ftp ftp nodirs > > readme README* login > readme README* cwd=* > > message /welcome.msg login > message .message cwd=* > > compress yes all > tar yes all > > log commands real,anonymous,guest > log transfers anonymous,real,guest inbound,outbound > > shutdown /sean/ftp/.shutmsg > #email <user> > email user@hostname > ************************************************************************ > > > ...NOTE : HTML SECTION HAS BEEN FILTERED OUT AT THIS LOCATION... -- Bob Luckin [email protected] "Coder, adapt; FTP Ada, redo C"