Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-09-2004, 03:48 PM
|
#1
|
Member
Registered: Mar 2004
Posts: 102
Rep:
|
proftpd: proftpd startup failed
I am running Mandrake 10.0 after very recently having purchased it. Mandrake 9.2 seamed to have worked with this issue, but 10 is giving me some problems.
I installed Mandrake 10 for the first time yesterday. One of the several problems is that I can't seem to configure my ProFTP daemon. I've edited the /etc/proftpd.conf file, checked my folder permissions, I even installed Webmin to see if their user interface might point something out I forgot with the text editor.
After making configuration changes, I tried restarting the proftpd service using
but I got the following error:
Code:
Shutting down proftpd: [FAILED]
Starting proftpd: - getaddrinfo 'delta2' error: Name or service not known
- error: unable to determine IP address of 'delta2'
- error: no valid servers configured
- Fatal: error processing configuration file '/etc/proftpd.conf'
[FAILED]
I know I have an IP address because I can surf the web and ifconfig tells me I have one. I'm also obviously logged on as root.
I get the same stuff in my boot.log file
Code:
Jun 9 13:56:34 delta2 proftpd: - getaddrinfo 'delta2' error: Name or service not known
Jun 9 13:56:34 delta2 proftpd: - error: unable to determine IP address of 'delta2'
Jun 9 13:56:34 delta2 proftpd: - error: no valid servers configured
Jun 9 13:56:34 delta2 proftpd: - Fatal: error processing configuration file '/etc/proftpd.conf'
Jun 9 13:56:34 delta2 proftpd: proftpd startup failed
Can someone please help? Thanks in advance.
ian
|
|
|
06-09-2004, 04:24 PM
|
#2
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
Might help seeing your config file. Also, you may want to be sure the config file is in unix format and not Windows format. You can check by doing...
Code:
vi -b /etc/proftpd.conf
and see if there are any ^M characters showing up at the end of each line.
|
|
|
06-09-2004, 05:04 PM
|
#3
|
Member
Registered: Mar 2004
Posts: 102
Original Poster
Rep:
|
First off, thanks for the reply.
I tried opening proftpd.conf in binary mode and there were no ^M characters. Here is the config file:
Code:
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "Delta2 FTP Server"
ServerType standalone
DefaultServer on
# Allow FTP resuming.
# Remember to set to off if you have an incoming ftp for upload.
AllowStoreRestart on
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 10
# Set the user and group under which the server will run.
User nobody
Group nogroup
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~
# Normally, we want files to be overwriteable.
<Directory />
AllowOverwrite on
</Directory>
# Needed for NIS.
PersistentPasswd off
# Default root can be used to put users in a chroot environment.
# As an example if you have a user foo and you want to put foo in /home/foo
# chroot environment you would do this:
#
# DefaultRoot /home/foo foo
DefaultRoot /var/ftp/pub testuser
<Global>
DeleteAbortedStores on
HiddenStor on
RootLogin off
DisplayGoAway ""Too many concurrent connections.""
MaxLoginAttempts 3
UseFtpUsers on
</Global>
The only thing that bugs me are these lines:
Code:
# Set the user and group under which the server will run.
User nobody
Group nogroup
There is no user/group called nobody/nogroup. I remember not having to set a special user/group with my last installation (9.2), so I didn't touch these lines. I left them as they were.
Thanks,
ian
|
|
|
06-09-2004, 05:41 PM
|
#4
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
Yeah, you'll need to make those. Mine were already made when I installed, so I can see where that's easy to overlook... but yeah, I think you really need them. But I don't know if that's really your problem.. the errors you got seem to suggest that the OS doesn't recognize the service name.
|
|
|
06-09-2004, 05:43 PM
|
#5
|
Member
Registered: Mar 2004
Posts: 102
Original Poster
Rep:
|
Should I just create them like a create a normal user? Should they have more permissions than the normal users?
ian
|
|
|
06-09-2004, 06:28 PM
|
#6
|
Member
Registered: Mar 2004
Posts: 102
Original Poster
Rep:
|
Well, I went to create a user and group that matched the proftpd.conf file and they already exist! Not that I can see them, but the Mandrake user interface told me a user with that name already exists.
I guess that's not my problem.
ian
|
|
|
06-09-2004, 07:16 PM
|
#7
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
What's the contents of your /etc/hosts file? You must have your hostname associated with the IP address you're using for this machine.
|
|
|
06-10-2004, 03:14 AM
|
#8
|
Member
Registered: Mar 2004
Posts: 102
Original Poster
Rep:
|
Ha! You're kidding me! The only thing in there is
Code:
127.0.0.1 localhost
Should I put
Code:
my_ip_address my_hostname
I'll go ahead and try it. Hope this works.
ian
|
|
|
06-10-2004, 03:39 AM
|
#9
|
Member
Registered: Mar 2004
Posts: 102
Original Poster
Rep:
|
Code:
Shutting down proftpd: [ OK ]
Starting proftpd: [ OK ]
You are a genius!!! It's people like you that make this community work. I afferoed you, by the way.
You have a great day!
ian
|
|
|
06-10-2004, 07:25 AM
|
#10
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
No problem. Glad it worked. Thanks very much!
|
|
|
05-11-2009, 08:17 AM
|
#11
|
LQ Newbie
Registered: May 2009
Posts: 1
Rep:
|
Thanks for the tip ! It did the job for me !
|
|
|
06-04-2009, 02:28 AM
|
#12
|
LQ Newbie
Registered: Jun 2009
Posts: 1
Rep:
|
Thanks Donboy!
Even though I had my FQDN in my hosts file it still didn't work, I had to fill in my short name. (Just a tip)
|
|
|
10-16-2009, 03:24 AM
|
#13
|
LQ Newbie
Registered: Oct 2009
Posts: 1
Rep:
|
Alternative TIP
Quote:
Originally Posted by bletro
Thanks Donboy!
Even though I had my FQDN in my hosts file it still didn't work, I had to fill in my short name. (Just a tip)
|
I used
Quote:
proftpd.conf
# Bind to Default Adress
DefaultAddress 192.168.0.1
SocketBindTight on
|
Worked nice for me... Not sure you need SocketBindTight
Last edited by snokendrutt; 10-16-2009 at 03:25 AM.
|
|
|
07-21-2010, 11:47 PM
|
#14
|
LQ Newbie
Registered: Jul 2010
Posts: 1
Rep:
|
Your questions try this:
vi /etc/hosts
127.0.0.1 delta2
|
|
|
06-17-2012, 12:06 PM
|
#15
|
LQ Newbie
Registered: Jun 2012
Posts: 1
Rep:
|
thanks too much
in /etc/hosts add this:
<your-ip-address> <server-name>
thanks too much, it saves my time.
|
|
|
All times are GMT -5. The time now is 03:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|