LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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

Reply
 
Search this Thread
Old 10-20-2002, 12:57 AM   #1
dave4545
Member
 
Registered: Oct 2002
Distribution: Redhat Linux 7.0 Apache/1.3.27 PHP Version 4.3.1 server api Apache
Posts: 46

Rep: Reputation: 15
inetd VS xinetd


I could really use some help from you guys.
I have searched and searched for a solution on the boards.
I've tried just about everything with no luck.

I'm trying to install proftpd on my new server using Redhat Linux 7.2

Everyone says to do this and that with the inetd file. I don't have an inetd file on my new server. I have that file on my old server and proftpd works fine.

I do have xinetd on my new server. Any experience this?
I'll be glad to supply additional information if needed.

Your help would greatly be appreciated. This is driving me insane.

Dave.
 
Old 10-20-2002, 01:06 AM   #2
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
xinetd is basically a newer version of inetd. I guess it's supposed to be more secure. Each of them are called "super daemons" because they can controll a whole bunch of other daemons in one package (I think that this ends up being part of their downside too ). You should use xinetd if you are going to use them.

Xinetd can be configured either with the file /etc/xinetd.conf, or with a directory having that name and a bunch of files inside of it. I use the single file option myself, but I think most people opt for the directory one.

here's what my file looks like:

I think you need this at the top:

defaults
{
instances = 10
log_type = FILE /var/log/service.log
log_on_success = HOST PID
log_on_failure = HOST RECORD
}

then you add entries for each of the other servers that you want xinetd to controll, for example, here's my entry for sshd:

service ssh
{
socket_type = stream
protocol = tcp
wait = no
user = root
port = 22
server = /usr/sbin/sshd
server_args = -i
}


Now, If you wanted to use the /etc/xinetd.conf/ DIRECTORY option, you would have each of these sections in their own text file named "defaults" "<maybe service> ssh"

I hope that clears it up a little

good luck
 
Old 10-20-2002, 04:44 AM   #3
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
On a default install of xinetd there is:
/etc/xinetd.conf with default settings for the daemons
/etc/xinetd.d with the daemons themselves

So you want to add ProFTPd support? Then you need to create a /etc/xinetd.d/proftpd for instance with the content of something like
Code:
service ftp
{
	disable		= no
	flags           = REUSE
	socket_type     = stream
	instances       = 150
	wait            = no
	user            = ftp
	server          = /usr/sbin/proftpd
	log_on_success  = HOST PID
	log_on_failure  = HOST RECORD
}
Afterwards restart xinetd using /etc/rc.d/init.d/xinetd restart

Last edited by markus1982; 10-20-2002 at 04:46 AM.
 
Old 10-20-2002, 12:33 PM   #4
dave4545
Member
 
Registered: Oct 2002
Distribution: Redhat Linux 7.0 Apache/1.3.27 PHP Version 4.3.1 server api Apache
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for the help fellows.
I must be missing something.
Would someone mind looking at my server and seeing what I'm doing wrong? I can email you the info to get on the server.

I've tried alot of things posted on the boards and so far no luck.
 
Old 10-20-2002, 12:49 PM   #5
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Quote:
Would someone mind looking at my server and seeing what I'm doing wrong? I can email you the info to get on the server.
I would NOT do something alike. This is always a bad thing to do ... Check the /var/log/messages for logging details regarding xinetd!
 
Old 10-20-2002, 12:51 PM   #6
dave4545
Member
 
Registered: Oct 2002
Distribution: Redhat Linux 7.0 Apache/1.3.27 PHP Version 4.3.1 server api Apache
Posts: 46

Original Poster
Rep: Reputation: 15
Here is the file.
Oct 20 04:02:03 www3 syslogd 1.4.1: restart.
Oct 20 12:17:16 www3 sshd(pam_unix)[17231]: session opened for user root by (uid=0)
Oct 20 12:22:03 www3 xinetd[21415]: Exiting...
Oct 20 12:22:03 www3 xinetd: xinetd shutdown succeeded
Oct 20 12:22:03 www3 xinetd[17600]: id not unique: ftp [line=12]
Oct 20 12:22:03 www3 xinetd[17600]: xinetd Version 2002.03.28 started with libwrap options compiled in.
Oct 20 12:22:03 www3 xinetd[17600]: Started working: 1 available service
Oct 20 12:22:06 www3 xinetd: xinetd startup succeeded
Oct 20 12:27:49 www3 xinetd[17600]: Exiting...
Oct 20 12:27:49 www3 xinetd: xinetd shutdown succeeded
Oct 20 12:27:49 www3 xinetd[18025]: id not unique: ftp [line=12]
Oct 20 12:27:49 www3 xinetd[18025]: xinetd Version 2002.03.28 started with libwrap options compiled in.
Oct 20 12:27:49 www3 xinetd[18025]: Started working: 1 available service
Oct 20 12:27:52 www3 xinetd: xinetd startup succeeded
 
Old 10-20-2002, 12:54 PM   #7
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Quote:
Originally posted by dave4545
Here is the file.
Oct 20 04:02:03 www3 syslogd 1.4.1: restart.
Oct 20 12:17:16 www3 sshd(pam_unix)[17231]: session opened for user root by (uid=0)
Oct 20 12:22:03 www3 xinetd[21415]: Exiting...
Oct 20 12:22:03 www3 xinetd: xinetd shutdown succeeded
Oct 20 12:22:03 www3 xinetd[17600]: id not unique: ftp [line=12]
check line 12 of /etc/xinetd.d/ftp like do a
Code:
vi /etc/xinetd.d/ftp +12
 
Old 10-20-2002, 01:01 PM   #8
dave4545
Member
 
Registered: Oct 2002
Distribution: Redhat Linux 7.0 Apache/1.3.27 PHP Version 4.3.1 server api Apache
Posts: 46

Original Poster
Rep: Reputation: 15
I don't have a file named ftp under the
/etc/xinetd.d directory.
I have a file called proftpd under that directory.
The contents on that file are
service ftp
{
disable = no
flags = REUSE
socket_type = stream
instances = 150
wait = no
user = ftp
server = /usr/local/sbin/proftpd
log_on_success = HOST PID
log_on_failure = HOST RECORD
}
 
Old 10-20-2002, 01:30 PM   #9
dave4545
Member
 
Registered: Oct 2002
Distribution: Redhat Linux 7.0 Apache/1.3.27 PHP Version 4.3.1 server api Apache
Posts: 46

Original Poster
Rep: Reputation: 15
I changed user=ftp
user=root
I nolonger get that error message.
When I try to logon using my WS_ftppro program I get a connection refused.
I checked my proftpd.log and messages log and nothing shows that I tried to ftp to the site.
 
Old 10-20-2002, 03:06 PM   #10
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
read all of the documents for proftpd. There will be configuration files that you might need to change. try "man proftpd" or "man ftp" for a start

Good luck
 
Old 10-20-2002, 03:25 PM   #11
dave4545
Member
 
Registered: Oct 2002
Distribution: Redhat Linux 7.0 Apache/1.3.27 PHP Version 4.3.1 server api Apache
Posts: 46

Original Poster
Rep: Reputation: 15
Yeah. I followed the instructions that were given on the proftpd site.
Once that didn't work I started trying all kinds of different things that didn't seem to work.
Now that I've done all of that it would probably be best for me to start over.
Look for someone who can assist and find out why this easily installed software was not so easy on my server.

It works fine on my older server.
 
Old 10-20-2002, 03:48 PM   #12
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
How I installed ProFTPd:
Code:
cp proftpd-*.bz2 /usr/src
cd /usr/src
tar xvfj proftpd-*.bz2
cd proftpd-*
./configure \
	--prefix=/usr/server \
	--sysconfdir=/etc
make
make install
cd /usr/src
rm -r proftpd*
And /etc/xinetd.d/ftp
Code:
service ftp
{
	disable	= no
        flags           = REUSE
        socket_type     = stream
        instances       = 150
        wait            = no
        user            = root
        server          = /usr/server/sbin/proftpd
        log_on_success  = HOST PID
        log_on_failure  = HOST RECORD
}
 
Old 10-20-2002, 06:25 PM   #13
dave4545
Member
 
Registered: Oct 2002
Distribution: Redhat Linux 7.0 Apache/1.3.27 PHP Version 4.3.1 server api Apache
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks.
I'll completely remove proftpd and do this.
 
Old 10-20-2002, 06:46 PM   #14
dave4545
Member
 
Registered: Oct 2002
Distribution: Redhat Linux 7.0 Apache/1.3.27 PHP Version 4.3.1 server api Apache
Posts: 46

Original Poster
Rep: Reputation: 15
okay.
I removed everything and started over.
This is what happened when I tried to configure

[root@www3 proftpd-1.2.6]# ls
acconfig.h configure.in INSTALL modules README.LDAP README.Solaris2.5x
ChangeLog contrib install-sh NEWS README.linux-privs README.Unixware
config.guess COPYING lib README README.mod_sql sample-configurations
config.h.in CREDITS Makefile.in README.AIX README.modules src
config.sub doc Make.modules.in README.cygwin README.PAM stamp-h
configure include Make.rules.in README.FreeBSD README.ports stamp-h.in
[root@www3 proftpd-1.2.6]# ./configure \ --prefix=/usr/server \ --sysconfdir=/etc
configure: error: invalid variable name: --prefix
[root@www3 proftpd-1.2.6]#
 
Old 10-20-2002, 06:55 PM   #15
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
ditch those backslashes and try "./configure --help | less" to see what you can do

or if you want to keep the backslash, start the next argument on the next line

Last edited by adam_boz; 10-20-2002 at 06:57 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
vsftpd inetd -> xinetd slackster Linux - Networking 2 06-26-2005 06:37 PM
Inetd or Xinetd? allelopath Linux - Software 2 04-13-2005 02:03 PM
xinetd vs inetd alaios Linux - Security 6 05-01-2004 12:30 PM
inetd vs xinetd nero64 Linux - Newbie 1 11-26-2002 09:13 AM
Xinetd vs. Inetd JHuizingh Linux - General 2 07-19-2002 10:45 PM


All times are GMT -5. The time now is 04:40 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 Google+: linuxquestions
Open Source Consulting | Domain Registration