LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-22-2002, 09:58 PM   #1
John_Saunders
Member
 
Registered: Jun 2002
Location: Wilmington, NC
Distribution: Red Hat 7.2
Posts: 47

Rep: Reputation: 15
Need Help With Getting ProFTPd Started via XINETD


I just installed proftpd server to replace wuftpd because I want to make sure my server is more secure. I was able to get it started yesterday and connected, but now for some reason I can't get it to start. I have it set up to start through XINETD but for some reason it never does. Can somebody look through my settings and let me know if you can find why it isn't working?

Note: I'm not sure if this is why it isn't working but I do not have any files under /etc/xinetd.d named proftpd. If this could be the problem, how do I get it to show up? I used the default ./configure when installing proftpd.

File: /etc/xinetd.conf

Code:
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{
        instances               = 25
        log_type                = FILE /var/log/servicelog
        log_on_success          = HOST PID
        log_on_failure          = HOST RECORD
        cps                     = 25 30
}

service ftp
{
        disable                 = no
        flags                   = REUSE
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/local/sbin/in.proftpd
        log_on_success          += DURATION USERID
        log_on_failure          += USERID
        nice                    = 10
        bind                    = MYISPSIPADDRESS
}

service ssh
{
        flags       = REUSE
        protocol    = tcp
        socket_type = stream
        wait        = no
        user        = root
        server      = /usr/local/sbin/sshd
}

File: /usr/local/etc/proftpd.conf

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                      "mydomain.com"
ServerType                      inetd
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 that the server normally runs at.
User                            nobody
Group                           nobody

# Normally, we want files to be overwriteable.
<Directory /usr/local/private>
  AllowOverwrite                on
</Directory>

# A basic anonymous configuration, no upload directories.
<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                    25

  # 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 WRITE>
    DenyAll
  </Limit>

</Anonymous>
AllowRetrieveRestart on
AllowStoreRestart on
DefaultTransferMode ascii
IdentLookups off
MaxClients 5
ShowSymlinks on
ShowDotFiles on
AllowOverwrite on
RootLogin off
TimeoutLogin 0
TimeoutNoTransfer 0
TimeoutStalled 0
UseReverseDNS off
Files in.proftpd and proftpd are located in the /usr/sbin directory.

I've tried restarting xinetd with /etc/rc.d/init.d/xinetd restart and it comes up with this error:

/etc/rc.d/init.d/xinetd: config:: command not found

Here's what comes up when I run netstat-at so I know the FTP server is not running:

Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *:mysql                 *:*                     LISTEN      
tcp        0      0 *:pop3                  *:*                     LISTEN      
tcp        0      0 *:911                   *:*                     LISTEN      
tcp        0      0 *:http                  *:*                     LISTEN      
tcp        0      0 *:ssh                   *:*                     LISTEN      
tcp        0      0 *:smtp                  *:*                     LISTEN
Any ideas?

Last edited by John_Saunders; 07-22-2002 at 10:04 PM.
 
Old 07-23-2002, 06:57 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
Run the command 'whereis proftpd' as root. It's probably something like /usr/local/sbin/proftpd instead of the /usr/local/sbin/in.proftpd that you have in your xinetd.conf file.
 
Old 07-23-2002, 08:11 AM   #3
John_Saunders
Member
 
Registered: Jun 2002
Location: Wilmington, NC
Distribution: Red Hat 7.2
Posts: 47

Original Poster
Rep: Reputation: 15
Hello,

I ran the command whereis proftpd and this is what came up:

/etc/proftpd.conf /usr/local/sbin/proftpd /usr/local/etc/proftpd.conf

I'm pretty sure the in.proftpd is a symbolic link to /usr/local/sbin/proftpd.

This is what is in the file, /etc/proftpd.conf:

Code:
<Global>
AllowRetrieveRestart on
AllowStoreRestart on
DefaultTransferMode ascii
MaxClients 3 "You have to many concurrent connections to the server."
RootLogin off
DeleteAbortedStores off
HiddenStor off
ShowSymlinks on
ShowDotFiles on
AccessGrantMsg "Welcome to the Server!"
AllowOverwrite on
</Global>
MaxInstances 3
AllowRetrieveRestart on
AllowStoreRestart on
DefaultTransferMode ascii
DeleteAbortedStores off
HiddenStor off
ShowSymlinks on
ShowDotFiles on

I changed the path in the xinetd.conf file from in.proftpd to proftpd but it still doesn't appear to be working. This is what comes up still when I run the restart commands:

[root@server]# /etc/rc.d/init.d/xinetd restart
/etc/rc.d/init.d/xinetd: config:: command not found

[root@server]# service xinetd restart
/etc/init.d/xinetd: config:: command not found
 
Old 07-23-2002, 09:31 AM   #4
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 46
Hmm ok that's weird. It's still giving the message command not found. I assume it does some sanity checks on the executables for each file, because the service itself won't get started until someone connects. So your proftpd.conf file shouldn't really matter at this point. The ssh services seems to be working fine as is shown in your netstat output. The only thing I can see missing for ftp is the protocol line. But according to the man pages it should go to the default so I'm not sure if that could be causing a problem.
Is the executable bit not set on the file /usr/local/sbin/proftpd? Maybe you should run xinetd with the -d switch to find out why it's not starting the ftp service. Or run xinetd with strace for more debug info.

In case you want to compare here is what I have in my xinetd file:
Code:
service ftp
{
    log_on_success -= HOST PID
    socket_type    = stream
    protocol       = tcp
    wait           = no
    user           = root
    server         = /usr/sbin/proftpd
}
 
Old 07-23-2002, 10:25 AM   #5
John_Saunders
Member
 
Registered: Jun 2002
Location: Wilmington, NC
Distribution: Red Hat 7.2
Posts: 47

Original Poster
Rep: Reputation: 15
Hi Mik,

It's fixed! Thanks again for your help.

Last edited by John_Saunders; 07-23-2002 at 05:24 PM.
 
  


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
Proftpd can't be launched from xinetd pelletie Linux - Newbie 3 08-26-2008 02:54 PM
proFTPd using XINETD HELP!! sc_3007 Linux - Networking 2 08-03-2006 03:55 PM
can't connect to VNC server started by xinetd andymadigan Linux - Networking 4 02-21-2006 04:18 PM
proftpd and xinetd pfunk Linux - Networking 1 12-08-2004 01:59 AM
RealVNC on sid, can't connect to server started by xinetd andymadigan Debian 1 08-05-2004 05:32 PM


All times are GMT -5. The time now is 06:53 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration