Configure Telenet as a Daemo

Amit Mehra amitm at tgs-solutions.com
Tue Jul 22 08:05:55 PDT 2003


Hello,
          I tried all the methods to start my telnetd services at the
boot period but unfortunately achieved no success. I faced problem with
my boot scripts too (creation of symbolic links) but that has been
resolved. Is it that there is some problem with my package. Well, lately
I downloaded xinetd package from their site but am not able to start the
telent services. I have enclosed here my xinetd.conf file and the
/etc/xinetd.d/telnet file, please let me know if I am going wrong
somewhere.

Also, I was suggested to start telnetd services manually but I think I
am not able to achieve this too. I am using

telnetd -debug

to start the services but am not able to start. Is my syntax wrong?

Please advice,
Thanks,
Amit

-------------- next part --------------
# default: on
# description: The telnet server serves telnet sessions; it uses \
#	unencrypted username/password pairs for authentication.
service telnet
{
	disable	        = no
	flags		= REUSE
	socket_type	= stream        
	wait		= no
	user		= root
        group		= yes
	server		= /usr/sbin/in.telnetd
	log_on_failure	+= USERID
}
-------------- next part --------------
#
# Sample configuration file for xinetd
#
echo " REACHED HERE"
defaults
{
	instances 		= 25
	log_type 		= FILE /var/log/servicelog
	log_on_success	= HOST PID
	log_on_failure = HOST RECORD
	disabled 		= tftp
}


#
# Group 1: BSD services
#
# Shell, login, exec, comsat, talk, ntalk 
#

service login
{
	socket_type		= stream
	protocol		= tcp
	wait			= no
	user			= root
	server			= /usr/sbin/in.rlogind
	log_type 		= SYSLOG local4 info
}


service shell
{
	socket_type		= stream
	wait			= no
	user			= root
	instances		= UNLIMITED
	flags			= IDONLY
	log_on_success += USERID
	server			= /usr/sbin/in.rshd
}


service exec
{
	socket_type		= stream
	wait			= no
	user			= root
	server			= /usr/sbin/in.rexecd
}

service comsat
{
	socket_type		= dgram
	wait			= yes
	user			= nobody
	group			= tty
	server			= /usr/sbin/in.comsat
}

service talk
{
	socket_type		= dgram
	wait			= yes
	user			= root
	server			= /usr/sbin/in.talkd
}

service ntalk
{
	socket_type		= dgram
	wait			= yes
	user			= root
	server			= /usr/sbin/in.ntalkd
}

#
# Group 2: standard Internet services
#
# Telnet, ftp 
#
service telnet
{
	socket_type		= stream	
        disabled		= no
        protocol		= tcp
	wait			= no
	user			= root
        group                   = yes
        only_from               = 127.0.0.1
	server			= /usr/sbin/in.telnetd
	log_on_failure          += USERID
}

service ftp
{
	socket_type		= stream
	wait			= no
	user			= root
	server			= /usr/sbin/in.ftpd
	server_args		= -l
	instances		= 4
	log_on_success	+= DURATION USERID
	log_on_failure += USERID
	access_times	= 2:00-8:59 12:00-23:59
	nice			= 10
}

#
# Group 3: other services
#

#
# Tnamed serves the obsolete IEN-116 name server protocol.
#
service name
{
	socket_type		= dgram
	wait			= yes
	user			= root
	server			= /usr/sbin/in.tnamed
}

#service uucp
#{
#	socket_type		= stream
#	wait			= no
#	user			= root
#	server			= /usr/sbin/in.uucpd
#}

service tftp
{
	socket_type		= dgram
	wait			= yes
	user			= root
	server			= /usr/sbin/in.tftpd
	server_args		= -s /tftpboot
}


#
# Group 4: information services
#
service finger
{
	socket_type		= stream
	wait			= no
	user			= nobody
	server			= /usr/sbin/in.fingerd
}

service systat
{
	socket_type		= stream
	wait			= no
	user			= nobody
	server			= /usr/bin/ps
	server_args		= -auwwx
	only_from		= 128.138.209.0
	log_on_success		= HOST
}

service netstat
{
	socket_type		= stream
	wait			= no
	user			= nobody
	server			= /usr/ucb/netstat
	server_args		= -f inet
	only_from		= 128.138.209.0
	log_on_success		= HOST
}


#
# Group 5: internal services
#
# echo, time, daytime, chargen, servers, services
#
service echo
{
	type			= INTERNAL
	id			= echo-stream
	socket_type		= stream
	protocol		= tcp
	user			= root
	wait			= no
}

service echo
{
	type			= INTERNAL
	id			= echo-dgram
	socket_type		= dgram
	protocol		= udp
	user			= root
	wait			= yes
}

service chargen
{
	type			= INTERNAL
	id			= chargen-stream
	socket_type		= stream
	protocol		= tcp
	user			= root
	wait			= no
}

service chargen
{
	type			= INTERNAL
	id			= chargen-dgram
	socket_type		= dgram
	protocol		= udp
	user			= root
	wait			= yes
}

service daytime
{
	type			= INTERNAL
	id			= daytime-stream
	socket_type		= stream
	protocol		= tcp
	user			= root
	wait			= no
}

service daytime
{
	type			= INTERNAL
	id			= daytime-dgram
	socket_type		= dgram
	protocol		= udp
	user			= root
	wait			= yes
}

service time
{
	type			= INTERNAL
	id			= time-stream
	socket_type		= stream
	protocol		= tcp
	user			= root
	wait			= no
}


service time
{
	type			= INTERNAL
	id			= time-dgram
	socket_type		= dgram
	protocol		= udp
	user			= root
	wait			= yes
}


service servers
{
	type			= INTERNAL UNLISTED
	port			= 9099
	protocol		= tcp
	socket_type		= stream
	wait			= no
	instances		= 2
}


service services
{
	type			= INTERNAL UNLISTED
	port			= 9098
	protocol		= tcp
	socket_type		= stream
	wait			= no
	instances		= 2
}


#
# Group 6: RPC services
#
service rstatd
{
	type			= RPC
	flags			= INTERCEPT
	rpc_version		= 2-4
	socket_type		= dgram
	protocol		= udp
	server			= /usr/sbin/rpc.rstatd
	wait			= yes
	user			= root
}

service rquotad
{
	type			= RPC
	rpc_version		= 1
	socket_type		= dgram
	protocol		= udp
	wait			= yes
	user			= root
	server			= /usr/sbin/rpc.rstatd
}

service rusersd
{
	type			= RPC
	rpc_version		= 1-2
	socket_type		= dgram
	protocol		= udp
	wait			= yes
	user			= root
	server			= /usr/sbin/rpc.rusersd
}

service sprayd
{
	type			= RPC
	rpc_version		= 1
	socket_type		= dgram
	protocol		= udp
	wait			= yes
	user			= root
	server			= /usr/sbin/rpc.sprayd
}

service walld
{
	type			= RPC
	rpc_version		= 1
	socket_type		= dgram
	protocol		= udp
	wait			= yes
	user			= nobody
	group			= tty
	server			= /usr/sbin/rpc.rwalld
}


#
# Group 7: Security Sensors
#
service irc
{
         socket_type              = stream
         wait                     = no
         user                     = root
         flags                    = SENSOR
         type                     = INTERNAL
         bind                     = 192.168.1.30
         deny_time                = 60
}
includedir /etc/xinetd.d
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amitm.vcf
Type: text/x-vcard
Size: 346 bytes
Desc: Card for Amit Mehra
URL: <http://lists.linuxfromscratch.org/pipermail/blfs-support/attachments/20030722/0e3c3fa8/attachment.vcf>


More information about the blfs-support mailing list