Configure Telenet as a Daemo

Josef Sevcik josef.sevcik at siemens.com
Tue Jul 22 08:13:21 PDT 2003



Amit Mehra wrote:

>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
>
telnetd -debug 21

>
>to start the services but am not able to start. Is my syntax wrong?
>
>Please advice,
>Thanks,
>Amit
>
>  
>
>------------------------------------------------------------------------
>
># 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
>}
>  
>
>------------------------------------------------------------------------
>
>#
># 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
>  
>

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-support' in the subject header of the message



More information about the blfs-support mailing list