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 11-10-2003, 12:01 AM   #1
fideli
Member
 
Registered: Nov 2003
Location: Mississauga
Distribution: arch linux
Posts: 51

Rep: Reputation: 15
ftp server not finding my ip address


i'm trying to set up an ftp server on my computer, but it's not finding my ip address. i've tried both proftpd and vsftpd, just to make sure i get the same error. proftpd tells me name or service not known, unable to determine ip address, no valid servers configured, and fatal error processing /etc/proftpd.conf. vsftpd tells me 500 OOPS: could not bind listening IPv4 socket. i have a pppoe dsl connection as well as firestarter. can anyone tell me what the solution to this simple problem is?
 
Old 11-10-2003, 12:38 AM   #2
adz
Senior Member
 
Registered: Jun 2003
Location: Sydney
Distribution: Debian, FreeBSD
Posts: 1,713

Rep: Reputation: 53
The server is not finding your address? I don't get it the server doesn't need to know your address.
 
Old 11-10-2003, 06:57 AM   #3
stonux
Member
 
Registered: Oct 2003
Distribution: SuSE, RH
Posts: 55

Rep: Reputation: 15
make sure you start of the FTP server as root, and verify that it changes its UID afterwards. Otherwise the server can't connect (bind listening) to ports < 1024.
 
Old 11-10-2003, 07:46 AM   #4
fideli
Member
 
Registered: Nov 2003
Location: Mississauga
Distribution: arch linux
Posts: 51

Original Poster
Rep: Reputation: 15
i ran it as root. how would i verify that it changes the uid?
 
Old 11-10-2003, 08:07 AM   #5
stonux
Member
 
Registered: Oct 2003
Distribution: SuSE, RH
Posts: 55

Rep: Reputation: 15
ps aux | grep ftpd
first column is user ID. Some servers like httpd keep one process running as root.
That one should not serve clients but manage server processes.

If the server process runs as root, it won't malfunction but be a
severe security issue.

BTW:
make sure that /etc/services contains a line for ftp (port 21).
check that ifconfig reports a network interface to be up (lo0 and dummy don't count)
are you sure that not any other FTP server is already occupying port 21?

Last edited by stonux; 11-10-2003 at 08:09 AM.
 
Old 11-10-2003, 09:28 PM   #6
fideli
Member
 
Registered: Nov 2003
Location: Mississauga
Distribution: arch linux
Posts: 51

Original Poster
Rep: Reputation: 15
nothing shows up in the ps aux list with the contents ftpd (i can't get either ftp server to run at all). no other ftp servers are running. /etc/services has two lines for ftp on port 21: one tcp, one udp. now what?
 
Old 02-17-2004, 11:28 AM   #7
jni
LQ Newbie
 
Registered: Feb 2004
Location: Toronto, Canada
Posts: 2

Rep: Reputation: 0
I have the same problem with not finding the ip address.

To make sure, here is a closer description:

When I try to connect from a different machine,
using my ip address,
I get two messages:
"Connected to <ip-address>"
"Connection closed by remote host"

Now, the system log file on my machine contains that entry:
Feb 17 12:07:35 nazgul proftpd[23089]: nazgul - error: unable to determine IP address of 'nazgul'
Feb 17 12:07:35 nazgul proftpd[23090]: nazgul - ProFTPD terminating (signal 11)
Feb 17 12:07:35 nazgul proftpd[23090]: nazgul - FTP session closed.

where "nazgul" is the hostname of my machine.

And this seems to be your problem, too. Do you have a similar entry in your system log file?

Here are two more hints:

1. the ps -aux does not show the ftp daemon because that
is started on demand by xinetd.
That mechanism works - the fault cannot be there.

2. From the MySQL manual (yes, there seems to be a similar problem):
(chapter: 2.6.2.1 Linux Notes for Binary Distributions)
If you are using a libc-based system (instead of a glibc2 system), you will probably get some problems with hostname resolution and getpwnam() with the binary release. (This is because glibc unfortunately depends on some external libraries to resolve hostnames and getpwent(), even when compiled with -static). In this case you probably get the following error message when you run mysql_install_db:
Sorry, the host 'xxxx' could not be looked up


I am running Mandrake 9.2 and indeed that has a libc in its /usr/lib and no glibc. However, it should be possible to run all the programs that were included in this distribution, shouldn't it? (Otherwise it should not be called a distribution ...)

So here are the final questions:
1. What system are you running?
2. Does that use libc or glibc? (look in /usr/lib)
3. What syslog entries do you get?
4. Whom else can we ask?

Joerg
 
Old 02-18-2004, 11:47 AM   #8
jni
LQ Newbie
 
Registered: Feb 2004
Location: Toronto, Canada
Posts: 2

Rep: Reputation: 0
SOLUTION

From:
http://www.mandrakeuser.org/docs/connect/print/ftp.html

This really solved my problem.

-- Quote: --

If you get this error message:


Starting proftpd: hostname - Fatal: unable to determine IP address of 'hostname'


there's a problem with your DNS (name resolution). The most common cause for this problem is a hostname assigned to a machine which gets its IP via DHCP on a network without a DNS server. A quick fix for this problem is adding the hostname to the '/etc/hosts' file while using the same IP used for 'localhost', i.e. '127.0.0.1':


127.0.0.1 localhost.localdomain localhost
127.0.0.1 hostname of machine short name

If you don't know the hostname of your machine, run the hostname command.
Having made that change, restart the network as 'root' with


service network restart


and try starting the FTP server again.
 
  


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
Problems with ftp server bind: address allready in use Diode Linux - Distributions 6 11-18-2009 01:27 AM
Sending WAN IP address to FTP server sloik2000 Linux - Networking 2 02-08-2005 02:59 PM
trusted ip address access to ftp server i_am_so_kittle Linux - Security 3 05-08-2004 10:41 AM
having hard time finding FTP server resources e1000 Linux - Networking 2 11-12-2003 11:35 PM
FTP Server IP address problem johnk Linux - Networking 2 08-21-2003 03:40 PM


All times are GMT -5. The time now is 07:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration