LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-22-2010, 02:42 PM   #1
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Rep: Reputation: 34
Problem configuring pure-ftpd


I am trying to configure pure-ftpd following this instruction:
http://www.ubuntu-howto.info/howto/h...gure-pure-ftpd

I substitute myfirstuser with my own and when try to connect with it I get Connection timeout. SSL/TLS is checked at the ftp client, I provided the password I set and the ip address of my box with ftps:// before it.

I think thats all and can't figure out what I am missing.

Any sugesstions?

PS: I try some other things I see in internet
I run cmd (windows)
ftp x.x.x.x
result is :
connected to x.x.x.x
connection closed by remote host

on console netstat give following result:

debian:/home/konzo# netstat -an | grep "x.x.x.x"

udp 0 0 x.x.x.x:137 0.0.0.0:*
udp 0 0 x.x.x.x:138 0.0.0.0:*

where x.x.x.x is my ip address. I suppose ftp deamon shoul listen on port 21?? Right?

PS2:
I try theese commands and I see that ftp service listen on all IPs(if I understand it right)
netstat -a | ngrep "LISTEN"
tcp 0 0 *:ftp *:* LISTEN

on console I try this:
ftp x.x.x.x port
Connected to 77.70.126.28.
421 Service not available, remote server has closed connection
ftp>

I found that this error occur when no user and/or password are provided, but i reember that i set some pure-ftpd authorization nit unix or pam, because i have to have /etc/pam.d/ftp file and i haven't.

PS3:
which pure-ftpd
/usr/sbin/pure-ftpd

/usr/sbin# pure-ftpd stop
Unable to start a standalone server: Address already in use

Why i can't stop and start ftp server?



Still no ftp working. Any help?

Last edited by konzo; 07-23-2010 at 03:49 AM. Reason: more info
 
Old 07-23-2010, 03:51 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Run
Code:
netstat -tanpl|grep 21
Could be that (x)inetd is listening on port 21
 
Old 07-23-2010, 03:54 AM   #3
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 34
netstat -tanpl|grep 21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 3556/inetd

How to change that pureftpd listen on that port?
 
Old 07-23-2010, 03:57 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Edit /etc/inetd.conf, find the line that starts with ftp and is uncommented and comment it out (put a # in front)
Then restart inetd. For Slackware run:
Code:
/etc/rc.d/rc.inetd restart
 
Old 07-23-2010, 04:13 AM   #5
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 34
I have previous installtion of proftpd and maybe there is the problem
in /etc/inetd.conf there was
ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/proftpd
I commented this line and run this(in Debian):
/etc/init.d/openbsd-inetd restart
Restarting internet superserver: inetd.

Then run /usr/sbin/pure-ftpd start

but i get no response for a long time. /etc/init.d/pure-ftpd start execute with no errors, but when try to connect ftp client says: "Connect call failed!"

netstat -tanpl|grep 21 did not give a result. I think that /etc/init.d/pure-ftpd start didn't do anything...

PS: ftp localhost says "connection refused"

PS2:
I found in the pure-ftpd doc this command
/usr/sbin/pure-ftpd &
and ftp localhost is ok, but it didn't accept my password. I change the password with
pure-pw passwd konzo
but it didn't accept it.

Last edited by konzo; 07-23-2010 at 04:21 AM.
 
Old 07-23-2010, 04:23 AM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Use something like
Code:
/usr/sbin/pure-ftpd -A -d -B
to start pure-ftpd from CLI and see what you get
 
Old 07-23-2010, 04:31 AM   #7
konzo
Member
 
Registered: Dec 2008
Location: Bulgaria
Distribution: Debian / Slackware / Ubuntu
Posts: 230

Original Poster
Rep: Reputation: 34
/usr/sbin/pure-ftpd &
and
netstat -tanpl|grep 21
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 4754/pure-ftpd (SER
tcp6 0 0 :::21 :::* LISTEN 4754/pure-ftpd (SER


do the trick, but can't login with virtual user i made. i can login with linux user but it drops me:

here is the log ftom ftp client:
Code:
----------
Connect to: (23.07.2010 12:30:42)
hostname=x.x.x.x:21
username=x
startdir=
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 50 allowed.
220-Local time is now 08:31. Server port: 21.
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
AUTH TLS
500 This security scheme is not implemented
AUTH SSL
500 This security scheme is not implemented
QUIT
 
Old 07-23-2010, 08:02 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You should review the steps used to configure virtual users. Also make sure you ran:
Code:
pure-pw mkdb
after adding/editing users
 
  


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-ftpd-mysql activates pure-ftpd zvikamer Linux - Software 2 03-01-2008 12:11 PM
Pure-ftpd problem timinator Fedora 4 12-31-2007 03:55 PM
pure-ftpd problem Tinku Linux - Software 4 01-08-2006 10:52 AM
Problem with Pure-ftpd narunet Fedora 1 12-13-2005 06:30 AM
pure-ftpd connection problem bbaum Linux - Software 1 01-07-2004 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration