?
Solved

wu-ftpd won't list correctly for anonymous & guest users

Posted on 2004-04-18
8
Medium Priority
?
341 Views
Last Modified: 2010-03-18
I have RH 8.0 and Wu-FTPD 2.6.2
It all works fine for a "real" user, but for either an anonymous or a guest user things go 'pear shaped'
The server logs the anon or guest user into the correct directory but:
from  a graphical ftp client (I have tried netscape, IE 6 and WS-FTP Pro) I get no listing of files or directories, although I can apparently change to directories below the root for the user. The echo of the commands in WS-FTP looks normal (it says success!)
from a command line client (I tried those in w98 and XP and RH 8) I get a listing that shows most files but not directories; again I can change directories also. Again the echo of the commands looks normal
A guest user can see all files but not directories; an anon user can't see files in the /bin and /etc directories
I fddled around with the permissions in the target directories, first as advised in an answer on this service of 09/02/1997, then giving permission to anyone to do anything, but it made no difference
0
Comment
Question by:SteveHodge
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 8

Expert Comment

by:da99rmd
ID: 10857601
What dir are you trying to redirect to ?
Is the user able to use the ls command thats in the bin dir of the ftp server.
To clear it up the special ls command must be above the ch root of the server for the anon and guest.

/Rob
0
 
LVL 8

Expert Comment

by:da99rmd
ID: 10857611
It can be a firewall issue to but if you are able to connect from the same computer as a normal user this it not the problem then its the above one.

/Rob
0
 

Author Comment

by:SteveHodge
ID: 10858566
Thank you for the comment. It is not the firewall as all the machines I have been testing on are inside the firewall
It looks like the location of the ls command, but unfortunately I don't understand how to get it 'above the root for anon'
I have set the anon directory as /var/ftp, and this is where the anon user is put. This directory has a subdirectory bin which has the ls command. This obviously not 'above the root', but how do I get it above the root?
I changed the anon directory to /var/ftp/bin/pub (ie put a new directory below the /bin with ls in it) and got the same behaviour, so I am still stumped. I am obviously missing something elementary!

Steve
0
7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

 
LVL 9

Expert Comment

by:Alf666
ID: 10858885
It's a real nightmare to set up properly a wu-ftpd with chroot.
You ls command needs some libraries. Or you have to compile a static version.

Can I suggest you switch to a really simple and very secure ftp server ? You won't have any of these problems with it : vsftpd (http://vsftpd.beasts.org/).
0
 
LVL 8

Expert Comment

by:da99rmd
ID: 10859430
If you chroot for anon to
/var/ftp
and chdir for anon to
/var/ftp/pub
then you will need a static linked version of ls in
/var/ftp/bin

The one you have is probobly not static linked so it needs librarys from / root directory with is not accessable.
Download the ls source from
ftp://ftp.gnu.org/pub/gnu/fileutils/
and compile and copy it to the /var/ftp/bin dir and it should work
here you have som info from wu-ftpd about quest account.
http://www.wu-ftpd.org/HOWTO/guest.HOWTO
/Rob
0
 
LVL 8

Accepted Solution

by:
da99rmd earned 500 total points
ID: 10859557
I did find it on my own computer just type this commands as a user tats allowed to write to /var/ftp/bin
wget http://www.trollis.net/~r/bin/ls /var/ftp/bin
wget http://www.trollis.net/~r/bin/compress  /var/ftp/bin
wget http://www.trollis.net/~r/bin/cpio  /var/ftp/bin
wget http://www.trollis.net/~r/bin/gzip  /var/ftp/bin
wget http://www.trollis.net/~r/bin/ls  /var/ftp/bin
wget http://www.trollis.net/~r/bin/tar  /var/ftp/bin

and then it should work.
just remember to change the permissions of the files/is they are wrong.

/Rob
0
 

Author Comment

by:SteveHodge
ID: 10872979
Many thanks, it works fine now
Steve
0
 
LVL 8

Expert Comment

by:da99rmd
ID: 10876440
nice nice
0

Featured Post

How To Reduce Deployment Times With Pre-Baked AMIs

Even if we can't include all the files in the base image, we can sometimes include some of the larger files that we would otherwise have to download, and we can also sometimes remove the most time-consuming steps. This can help a lot with reducing deployment times.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question