LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 09-28-2004, 11:08 PM   #1
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Rep: Reputation: 15
I have a problem with running proftpd sever


following error msg displayed
- getaddrinfo 'Jack_s-server' error: Name or service not known
- error: unable to determine IP address of "Jack_s-server'
- error: no valid servers configured
- Fatal: error processing configureation file '/etc/proftpd.con'

How can I fix it. Please help.
 
Old 09-28-2004, 11:10 PM   #2
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Original Poster
Rep: Reputation: 15
P.S. I have a router.. What Can i do?
 
Old 09-29-2004, 04:31 AM   #3
onnyloh
Member
 
Registered: Nov 2002
Posts: 57

Rep: Reputation: 15
it is another kind of problem. doesn't relate with your router.
think u better start from using their sample configuration, slowly modify, analysze and debug.
that should be easier since your debug information is rather lack of;
 
Old 09-29-2004, 09:32 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,174

Rep: Reputation: 47
it sounds like u defined hostname as Jack_s-server in proftpd.conf. or u did change your hotsname and didnt add record in /etc/hosts file about new hotname.

u can change the servername or hostname to localhost in proftpd.conf
or add a record in /etc/hosts file to proftpd find ip of "Jack_s-server":
Code:
127.0.0.1 Jack_s-server
good luck.
 
Old 09-29-2004, 01:05 PM   #5
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Original Poster
Rep: Reputation: 15
Hey.. thx for helping.. But I feel really sorry.. because I don't really understand how am I supposed to do it in order to make proftpd to recognize my hostname. I am a true Newbie so please explain more in detail.
 
Old 09-29-2004, 03:25 PM   #6
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Rep: Reputation: 30
Use your favorite text editor and open the contents of this file:

Code:
/etc/hosts
Copy and paste the contents of this file here.
Code:

--paste contents of /etc/hosts---
Now granted that there is nothing wrong with that file, let's start with a fresh proftpd.conf:

Code:
ServerName			"ProFTPD Default Installation"
ServerType			standalone
DefaultServer			on
Port				21
Umask				022
MaxInstances			30
User				nobody
Group				nogroup
DefaultRoot ~
<Directory />
  AllowOverwrite		on
</Directory>
<Anonymous ~ftp>
  User				ftp
  Group				ftp
  UserAlias			anonymous ftp
  MaxClients			10
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>
Copy and paste the lines above into a new proftpd.conf file...replace your old one with this new one. Restart profptd.

Last edited by jymbo; 09-29-2004 at 03:27 PM.
 
Old 09-29-2004, 03:34 PM   #7
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Original Poster
Rep: Reputation: 15
for /etc/hosts, is it supposed to be empty. I have slackware 10.0, and it has hosts.allow and hosts.deny. which hosts is the one I am supposed to do editing.
Or, should both files be empty?
 
Old 09-29-2004, 06:08 PM   #8
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Rep: Reputation: 30
Quote:
Originally posted by babyboss
for /etc/hosts, is it supposed to be empty. I have slackware 10.0, and it has hosts.allow and hosts.deny. which hosts is the one I am supposed to do editing.
Or, should both files be empty?
Umm..no, /etc/hosts is NOT supposed to be empty. We need to fix this.

Code:
#netconfig
The easiest way is to just start your network config all over with the netconfig tool. Give your machine a hostname with a bogus domain like "local.lan". Reboot and let's finish fixing your proftpd.
 
Old 09-29-2004, 07:58 PM   #9
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Original Poster
Rep: Reputation: 15
Hello.. netconfig seems resolved the ip problem, but I proftpd -c /etc/proftpd.conf, it seems to work. When I check ps -l, proftpd is not on the list. I tried to ftp localhost, it says "Services is not available, and remote server has closed connection." then it turns to ftp> promotion.
How can solve this?
 
Old 09-29-2004, 08:19 PM   #10
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Rep: Reputation: 30
You cannot start proftpd in that manner with the default Slackware configuration. The default configuration is for running from inetd.

If you haven't done so already, replace your existing /etc/proftpd.conf file with the one I posted above. This will allow you to run proftpd from the command line (standalone mode).

Then to test it, do this:

Code:
#ftp [hostname] (NOT localhost)
If successfull, the cursor should return with the Proftpd credentials, and sit there asking for a name. Login with a user/pass on that system (if you've created one).

Last edited by jymbo; 09-29-2004 at 08:24 PM.
 
Old 09-29-2004, 09:11 PM   #11
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Original Poster
Rep: Reputation: 15
I did exactly what you asked to do..but I get the same result. when I ftp my internal ip address, the same thing happened. The connection is closed ...what else can I do?
 
Old 09-30-2004, 01:21 AM   #12
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,174

Rep: Reputation: 47
post the output of following commands:
cat /etc/hosts
hostname
 
Old 09-30-2004, 01:34 AM   #13
babyboss
Member
 
Registered: Sep 2004
Posts: 124

Original Poster
Rep: Reputation: 15
127.0.0.1 Localhost
127.0.0.1 darkstar.com darkstar
 
Old 09-30-2004, 04:22 AM   #14
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,174

Rep: Reputation: 47
change /etc/hosts file like that:
Code:
127.0.0.1 Localhost localhost localhost.localdomain darkstar.com darkstar Jack_s-server
and try to run proftpd.

good luck.
 
Old 09-30-2004, 07:37 AM   #15
jymbo
Member
 
Registered: Jan 2003
Posts: 217

Rep: Reputation: 30
Quote:
Originally posted by babyboss
127.0.0.1 Localhost
127.0.0.1 darkstar.com darkstar
This shows that you are obtaining your IP from a DHCP server (?).

Let's check some things:

1.) Is proftpd running from inetd? Did you edit /etc/inetd in any way prior to trying proftpd?

2.) When you started proftpd with the config file I gave you, did it return any errors? If you do "#ps -A | grep proftpd", is proftpd listed in the return output?

3.) What is your internal IP address (where is the DHCP server in relation to you? Are you on a broadband connection of some kind?)

4.) After you've started proftpd, do this:

Code:
#netstat -al |grep ftp
If proftpd is really running, then your prompt should return with a line that looks like this:

Code:
tcp      0       0    *:ftp                            *|*            LISTEN
5.) If you are seeing this line and you know proftpd is running, then try
Code:
#ftp 127.0.0.1

Last edited by jymbo; 09-30-2004 at 07:40 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
X sever (client ?) problem knobdy Linux - Newbie 6 10-25-2005 10:42 PM
Proftpd not running Xing Linux - Software 5 07-24-2005 08:29 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM
font sever problem shakeeb Linux - General 1 11-27-2003 10:11 AM
Running a sever w/o an IP address... Thaidog Linux - Newbie 8 09-24-2002 08:43 PM


All times are GMT -5. The time now is 06:12 PM.

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