terça-feira, 25 de maio de 2010

Habilitando Daytime no Linux

Para você habilitar o serviço daytime no linux basta seguir os seguintes passos:

Instale xinetd
a. sudo aptitude install xinetd

Reinicialize o xinetd
b. sudo invoke-rc.d xinetd reload

Agora vá no arquivo
c. sudo gedit /etc/xinetd.d/daytime

Altere disable = yes para disable = no

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

# This is the udp version.
service daytime
{
disable = yes
type = INTERNAL
id = daytime-dgram
socket_type = dgram
protocol = udp
user = root
wait = yes
}

após alteração:
service daytime
{
disable = no
type = INTERNAL
id = daytime-stream
socket_type = stream
protocol = tcp
user = root
wait = no
}

# This is the udp version.
service daytime
{
disable = no
type = INTERNAL
id = daytime-dgram
socket_type = dgram
protocol = udp
user = root
wait = yes
}

Reinicialize o serviço
c. sudo invoke-rc.d xinetd reload

Pronto..

para testar use telnet localhost 13

Nenhum comentário:

Postar um comentário

Seguidores