Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-28-2005, 06:16 PM   #1
LQ Newbie
Registered: Mar 2005
Location: Denmark
Distribution: Fedora Core 4 64bit
Posts: 22

Rep: Reputation: 15
Question Pureftpd + xinetd: Writes pureftpd commandline to client when connecting

I have installed pureftpd and everything is running fine... EXCEPT for a strange problem:

When a client connects to the server, what looks like the pureftpd commandline is echoed back to the client. Debugging with telnet, this is what happens:

[xxx@yyy]# telnet someserver 21
Trying aaa.bbb.ccc.ddd...
Connected to someserver (aaa.bbb.ccc.ddd).
Escape character is '^]'.
Running: /usr/sbin/pure-ftpd -A -c5 -C4 -D -E -fftp -H -I15 -lpuredb:/etc/pureftpd.pdb -L7500:8 -m4 -s -U133:022 -u500 -x -i -Oclf:/var/log/pureftpd.log -k99 -Z
220---------- Welcome to Pure-FTPd [privsep] ----------
220-You are user number 2 of 5 allowed.
220-Local time is now 01:03. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Note the line saying "Running: /usr/sbin/pure-ftpd ... ".
What's going on here? I'm sure it's not a good idea to publish the ftp-sever parameters like that...

So, how can I get the server to stop echoing the commandline to the client?

Edit: Changed some servername to protect the innocent...

Last edited by bomix; 03-28-2005 at 06:18 PM.
Old 03-29-2005, 02:09 PM   #2
Registered: Jan 2005
Location: Brabant, the Netherlands
Distribution: Gentoo 2004.x (2.6.10 hardened)
Posts: 91

Rep: Reputation: 15
From man pureftpd:

If there is a file called .banner in the root directory of the anony-
mous FTP area, or in the root directory of a virtual host, and it is
shorter than 1024 bytes, it is printed upon login.

So you need to find out what the root directory of your FTP area is (the dir where users are when they log in), and then edit / remove the file .banner in there.
Old 03-29-2005, 10:21 PM   #3
LQ Newbie
Registered: Mar 2005
Location: Denmark
Distribution: Fedora Core 4 64bit
Posts: 22

Original Poster
Rep: Reputation: 15
Thanks for your answer, but it has nothing to do with any .banner file.

If you look at my telnet-debug above, you'll see that the "unwanted text" is printed before anything else when the client connects to the server. A .banner file would be printed after successful login, that can't be it.

My suspicion is that it has something to do with xinetd. I think I'm doing something wrong in the pure-ftpd file in /etc/xinetd.d. I just don't know what...


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
help with runnin pureftpd computerdude Linux - Networking 1 09-04-2005 05:15 AM
any pureFTPd users ? cwolf78 Linux - Software 1 05-10-2005 01:57 AM
pureFTPd exkor5000 Linux - Newbie 2 11-17-2003 12:08 AM
pureftpd problem ksgill Linux - Newbie 2 04-16-2003 09:08 PM
Starting PureFTPd... fxlee Linux - Newbie 1 01-31-2002 07:13 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:56 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