Linux - NewbieThis 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.
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.
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
Code:
service -f proftpd
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
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.