Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Proftp Server cant start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gentoo_newguy
Guru
Guru


Joined: 10 Oct 2006
Posts: 539

PostPosted: Mon Nov 03, 2008 3:08 pm    Post subject: Proftp Server cant start Reply with quote

Hi i havent done anything to the config at all and it wont let me start the server.

Code:

* Checking proftpd configuration ...
 * Configuration error: please fix your configuration file (/etc/proftpd/proftpd.conf).                                                                          [ !! ]


Here is a copy of the config.
Im simply trying to just use the server on my local network to transfer some files.

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         "ProFTPD Default Installation"
ServerType         standalone
DefaultServer         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         30

# 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>

# A basic anonymous configuration, no upload directories.  If you do not
# want anonymous users, simply delete this entire <Anonymous> section.
<Anonymous ~ftp>
  User            ftp
  Group            ftp

  # We want clients to be able to login with "anonymous" as well as "ftp"
  UserAlias         anonymous ftp

  # Limit the maximum number of anonymous logins
  MaxClients         10

  # We want 'welcome.msg' displayed at login, and '.message' displayed
  # in each newly chdired directory.
  DisplayLogin         welcome.msg
  DisplayFirstChdir      .message

  # Limit WRITE everywhere in the anonymous chroot
  <Limit WRITE>
    DenyAll
  </Limit>
</Anonymous>


Any ideas guys
Back to top
View user's profile Send private message
Gef
Apprentice
Apprentice


Joined: 17 May 2008
Posts: 180
Location: France

PostPosted: Mon Nov 03, 2008 8:30 pm    Post subject: Reply with quote

Quote:
host ~ # proftpd -h
[...]
-t, --configtest
Test the syntax of the specified config
[...]

Could this help ?
_________________
Laptop : Gentoo ~amd64
(remote) Server : Gentoo amd64
Back to top
View user's profile Send private message
gentoo_newguy
Guru
Guru


Joined: 10 Oct 2006
Posts: 539

PostPosted: Tue Nov 04, 2008 12:43 pm    Post subject: Reply with quote

Code:
TuxServer ~ # proftpd -t
Checking syntax of configuration file
 - warning: the DisplayFirstChdir directive is deprecated and will be removed in a future release.  Please use the DisplayChdir directive.
 - warning: handling possibly truncated configuration data at line 58 of '/etc/proftpd/proftpd.conf'
 - warning: unable to determine IP address of 'TuxServer'
 - error: no valid servers configured
 - Fatal: error processing configuration file '/etc/proftpd/proftpd.conf'


This is just on my local network.
Never setone up before.
Back to top
View user's profile Send private message
YuriyRusinov
Apprentice
Apprentice


Joined: 21 Jul 2004
Posts: 213
Location: Saint-Petersburg, Russia

PostPosted: Wed Nov 12, 2008 9:58 pm    Post subject: Reply with quote

Possible you need to replace 'DisplayFirstChdir' directive on to 'DisplayChdir' in your configuration file.
_________________
Best regards,
Yuriy Rusinov.
Back to top
View user's profile Send private message
gentoo_newguy
Guru
Guru


Joined: 10 Oct 2006
Posts: 539

PostPosted: Thu Nov 13, 2008 1:20 pm    Post subject: Reply with quote

Thanks i will give it ago
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Thu Nov 13, 2008 2:52 pm    Post subject: Reply with quote

Hi

If i remember exactly, this is your porblem:
Quote:
warning: unable to determine IP address of 'TuxServer'

try:
Code:
echo 127.0.0.1 TuxServer >>/etc/hosts


Cheers
_________________
Power to the people!
Back to top
View user's profile Send private message
phoeniximago
n00b
n00b


Joined: 25 Jul 2008
Posts: 21

PostPosted: Thu Nov 13, 2008 5:38 pm    Post subject: Reply with quote

Had exactly the same problem today and changing DisplayFirstChdir to DisplayChdir as suggested earlier in this thread solved it:-).

Rob
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum