Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-26-2005, 12:50 PM   #1
Registered: Feb 2005
Posts: 106
Blog Entries: 1

Rep: Reputation: 15
ftp server - Pure ftp - logs in OK but no files visible

I have just set up a Pure-FTP server on my SuSE 9.1 system.

I set it running with pure-ftpd -A &

The -A option is to force chrooting of all users. (NB I started without the option and got the same problem)

I can log in to the server from the local host and also from another machine on the network (Win XP) as an anonymous user - it says "230 Anonymous user logged in" and gives me an ftp> prompt.

When I type ftp> dir, I get:

200 PORT command successful
150 Connecting to port 5001
226-Options: -1
226 0 matches total

I have setup the user ftp in Linux and put a file in the home directory home/ftp. The ownerships are all OK (ftp owns the file and directory). I tried opening port 5001 on the firewall, but that does not seem to be the issue.

I must be missing something simple. I have not told the ftp daemon where the home directory of the anonymous user is - but the word in the forums seems to be that it should be /home/ftp. Is there some other configuration option? I found the Pure-ftp documentation good on the advanced setup but not so good for newbies.

Any help gratefully received.

Old 08-26-2005, 01:26 PM   #2
LQ Guru
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
It _should_ be /home/ftp but in fact it could be anything, it depends on the /etc/passwd file. Take a look in there and check where your "ftp" account point to. As example, on my system :

so the anonymous account log into "/siteFtp/.anonymous/".

Btw, a general hints, make sure your anonymous users can't upload and download. Usually one of these rights is good (upload OR download) but both will _quickly_ change your box into the warez server of some 15 years-old script-kiddies that scan the world using scanner they can't even understand.
Old 08-30-2005, 06:11 AM   #3
Registered: Feb 2005
Posts: 106

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Cool Thanks very much

Thanks very much. You were quite right. The passwd file showed it was pointing at a directory /srv/ftp. I put a file in /srv/ftp and it is working fine.

I shall change it point to a data directory.

I had not noticed the /srv directory before and all my server software is installed in various places around the system at the whim of the rpm packages. I think a tidy up is called for!

Thanks also for the security tips. In fact I am only running anonymously on my internal network, my plan is to have proper login for all users before I go live on the internet.





Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
pure-ftp paskari Linux - Networking 1 09-24-2005 04:33 PM
Forward to another ftp-server with pure-ftpd didi86 Linux - Software 0 12-20-2004 01:55 PM
pure-ftp zaicheke Linux - Software 0 08-02-2004 05:57 PM
Set up ftp server with pure-ftpd aeruzcar Linux - Software 7 04-15-2004 08:43 AM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 09:23 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration