Re: can't see directories
Joan Moreau <[email protected]> Tue, 30 Mar 2004 04:17:07 +0200
| Newsgroups | gmane.network.ftp.wuftpd.user |
|---|---|
| Message-ID | <[email protected]> |
Also, I had the same problem,
And just the library in the "lib" directory of the ftp user were not
correctly setup
go in the "bin" directory of your ftp user
type
~ftp/bin> ldd ls
librt.so.1 => /lib/librt.so.1 (0x4002d000)
libacl.so.1 => /lib/libacl.so.1 (0x4003e000)
libc.so.6 => /lib/libc.so.6 (0x40044000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40162000)
libattr.so.1 => /lib/libattr.so.1 (0x40177000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
All those library have to exist in your ~ftp/lib directory
Bob Luckin wrote:
>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...
>>
>>