On Wed, 30 May 2001, Stephane wrote:
> le probl�me c'est que l'exemple de fichier que j'ai donner c'est mon
> fichier /etc/xinetd.conf

Ouai.. ben ca c'est le probleme. Voici mon fichier xinetd.conf en entier. Je 
pense que tu peux sans autre le mettre sur ton systeme et envoyer un signal a 
xinetd pour qu'il relise le fichier de conf (kill SIGUSR1, voir man).

Daniel



#
# xinetd.conf
#
# Copyright (c) 1998-99 SuSE GmbH Nuernberg, Germany.
#

defaults
{
	log_type        = FILE /var/log/xinetd.log 
        log_on_success  = HOST EXIT DURATION
	log_on_failure	= HOST ATTEMPT RECORD
#        only_from       = localhost
        instances       = 2

#
# The specification of an interface is interesting, if we are on a firewall.
# For example, if you only want to provide services from an internal
# network interface, you may specify your internal interfaces IP-Address.
#
#	interface	= 127.0.0.1
#

#
# If you want to enable one of the following services, you only have to
# comment ist out. After that, send SIGUSR1 to xinetd to force a
# reload of it's configuration
#

#	disabled	= ftp
        disabled        = rstatd
#	disabled	= telnet
	disabled	= shell
#	disabled	= login
	disabled	= finger
	disabled	= pop3
	disabled	= comsat
	disabled	= ntalk
	disabled	= talk
	disabled	= discard
	disabled	= chargen
	disabled	= daytime
	disabled	= time
	disabled	= echo
	disabled	= daytime
	disabled	= time
	disabled	= smtp
	disabled	= ident

}

##
## Now the definitions of the different services
##
##

service ftp
{
#
# Because we use wu.ftpd, we set instances to UNLIMITED.
# wu.ftpd manages the amount of users himself.
#
	socket_type     = stream
	protocol        = tcp
	wait            = no
	user            = root
	server          = /usr/sbin/wu.ftpd 
	server_args	= -a
        instances       = UNLIMITED
}



service telnet
{
	socket_type     = stream
	protocol        = tcp
	wait            = no
	user            = root
	server          = /usr/sbin/in.telnetd
	server_args	= -n
#	only_from	= localhost
	no_access	=
}


service shell
{
	socket_type	= stream
	protocol	= tcp
	wait		= no
	user		= root
	server		= /usr/sbin/in.rshd
	server_args	= -L
}


service login
{
	socket_type	= stream
	protocol	= tcp
	wait		= no
	user		= root
	server		= /usr/sbin/in.rlogind
	server_args	= -n
}



service finger
{
	socket_type     = stream
	protocol        = tcp
	wait            = no
	user            = nobody
	server          = /usr/sbin/in.fingerd 
	server_args	= -w
}



service pop3
{
	socket_type	= stream
	protocol	= tcp
	wait		= no
	user		= root
	server		= /usr/sbin/popper
	server_args	= -s
}



#service comsat
#{
#	socket_type     = dgram
#	protocol        = udp
#	wait            = yes
#	user            = root
#	server          = /usr/libexec/comsat
#}


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


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


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


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




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


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


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


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


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

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




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

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



service smtp
{
	socket_type     = stream
	protocol        = tcp
	wait            = no
	user            = root
	server          = /usr/sbin/sendmail
	server_args     = -bs B7BIT
}



service ident
{
	socket_type     = stream
	protocol        = tcp
	wait            = no
	user            = nobody
	server          = /usr/sbin/in.identd
	server_args     = -w -t120
}

Répondre à