LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-26-2005, 11:50 AM   #1
tp11235
Member
 
Registered: Feb 2005
Location: Somerset, England
Distribution: Gentoo
Posts: 105
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
ftp>.

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.

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

Rep: Reputation: 45
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 :
ftp:x:21:21::/siteFtp/.anonymous:/bin/false

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, 05:11 AM   #3
tp11235
Member
 
Registered: Feb 2005
Location: Somerset, England
Distribution: Gentoo
Posts: 105
Blog Entries: 1

Original Poster
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.

Cheers.

Tim.

 
  


Reply


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 03:33 PM
Forward to another ftp-server with pure-ftpd didi86 Linux - Software 0 12-20-2004 12:55 PM
pure-ftp zaicheke Linux - Software 0 08-02-2004 04:57 PM
Set up ftp server with pure-ftpd aeruzcar Linux - Software 7 04-15-2004 07:43 AM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 08:23 AM


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

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