We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Annon FTP Problem

kgcurrie
kgcurrie asked
on
Medium Priority
257 Views
Last Modified: 2012-05-04
Anyone know how to fix a problem w/ annonymous FTP where it will not display any files?  I'm running Debian 1.2, and the wu-ftpd package.  I've been through the man pages and such, tried all their modes for the various directories, and still nothing.  If I log in as a normal user, everything works fine.  If I log in as "ftp", I get no display of files.  I can still "cd" and "put" and everything works, but I cannot
see anything.  Any suggestions?

I've been asked to add a little info... here it is.

I've created the ~ftp directory structure and added the user ftp to my system.  the user ftp currently has no password, and his shell is /bin/sh.  i've tried giving ownership of the ~ftp dir to root.root, ftp.root, ftp.ftp, and just about any other logical combination.  I've tried file permissions ranging from full access, to read/exec, to read, to exec for every file in the heirarchy including "bin/ls" in various combinations.  nothing works.

Comment
Watch Question

Commented:
wu-ftpd has good logging facilties.  Turn on logging,
and try again.

Could you be more specific.
1.  Add your present configuration file.
2.  What is the current permission of the ftp directory.
(ls -lR /whatever/ftp)

Author

Commented:
Edited text of question

Commented:
What is the content of your ftpaccess file? Do you have
ftpaccess enabled? (start the daemon with -a)

What kind of output do you get when ftpd is run with -d option?

Finally, have you put a copy of /bin/ls into /usr/local/ftp/bin
(or the bin directory underneath whatever your anon-ftp tree
starts at.

NOTE:  /bin/ls MUST be the statically linked form of hte command,
as anon ftp does a chroot to the ftp directory, which makes
the shared libraries that many programs use inaccessible.


Commented:
Check permissions as root in the ftp homecatalogue.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.