elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Como proteger una cartera - billetera de Bitcoin


+  Foro de elhacker.net
|-+  Sistemas Operativos
| |-+  GNU/Linux (Moderador: MinusFour)
| | |-+  Internet Super-Server en ubuntu 11.10 destock (inetd)
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Internet Super-Server en ubuntu 11.10 destock (inetd)  (Leído 3,092 veces)
FAKEz

Desconectado Desconectado

Mensajes: 82


Fakez------


Ver Perfil
Internet Super-Server en ubuntu 11.10 destock (inetd)
« en: 2 Julio 2012, 06:22 am »

Hola , tengo entendido que hay que habilitar el servicio (inetd_enable="YES")de "/etc/rc.conf" en la carpeta etc no tengo este archivo, solamente rc.local,tampoco tenia inetd.conf pero lo pude ubicar instalando el paquete simple network service spawner .Que tendria que hacer para habilitar el servicio en ubuntu 11.10 ?.. muchas gracias. ;-)

encontre el archivo rc.conf  en /etc/init/

pero no dice nada "inetd_enable="YES""...


« Última modificación: 2 Julio 2012, 06:35 am por FAKEz » En línea

ccrunch


Desconectado Desconectado

Mensajes: 1.050



Ver Perfil WWW
Re: Internet Super-Server en ubuntu 11.10 destock (inetd)
« Respuesta #1 en: 3 Julio 2012, 22:38 pm »

Hola , tengo entendido que hay que habilitar el servicio (inetd_enable="YES")de "/etc/rc.conf" en la carpeta etc no tengo este archivo, solamente rc.local,tampoco tenia inetd.conf pero lo pude ubicar instalando el paquete simple network service spawner .Que tendria que hacer para habilitar el servicio en ubuntu 11.10 ?.. muchas gracias. ;-)

encontre el archivo rc.conf  en /etc/init/

pero no dice nada "inetd_enable="YES""...
Hola camarada.

Te voy a poner una solución mia aunque no sé si te va a servir de algo, intentaré ayudarte.

Me imagino que a inetd (o como se llame) lo reconocerá como servicio.
Intenta ver su estado:
Código:
service inetd status
y luego activalo
Código:
sudo service inetd start

Y dices si funciona o no.

Segunda opción:
Prueba si tienes la carpeta rc.d y si el archivo está ahí, o si hay una carpeta rc y luego un archivo .conf que a veces a mi también me ha pasado saltarme algunas carpetas.


En línea

FAKEz

Desconectado Desconectado

Mensajes: 82


Fakez------


Ver Perfil
Re: Internet Super-Server en ubuntu 11.10 destock (inetd)
« Respuesta #2 en: 4 Julio 2012, 04:34 am »

Gracias por ayudar ccruch  ya habia probado como tu me dijiste pero esto es lo que ocurre:

# sudo service inetd start
inetd: unrecognized service


mira en la carpeta /etc, tengo el siguiente archivo inetd.conf, esta compuesto por lo siguiente:

# /etc/inetd.conf:  see inetd(8) for further informations.
#
# Internet superserver configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#discard      stream   tcp   nowait   root   internal
#discard      dgram   udp   wait   root   internal
#daytime      stream   tcp   nowait   root   internal
#time      stream   tcp   nowait   root   internal

#:STANDARD: These are standard services.

#:BSD: Shell, login, exec and talk are BSD protocols.

#:MAIL: Mail, news and uucp services.

#:INFO: Info services

#:BOOT: TFTP service is provided primarily for booting.  Most sites
#       run this only on machines acting as "boot servers."

#:RPC: RPC based services

#:HAM-RADIO: amateur-radio services

#:OTHER: Other services


En /etc/rc0.d tengo k20openbsd-inetd con lo siguiente:

#!/bin/sh -e
### BEGIN INIT INFO
# Provides:          openbsd-inetd
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Should-Start:      $syslog
# Should-Stop:       $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start or stop the inetd daemon.
### END INIT INFO

DAEMON=/usr/sbin/inetd

[ -x $DAEMON -a -e /etc/inetd.conf ] || exit 0

[ -e /etc/default/openbsd-inetd ] && . /etc/default/openbsd-inetd

. /lib/lsb/init-functions

checkportmap () {
  if ! grep -v -s "^ *#" /etc/inetd.conf | grep -q -s 'rpc/'; then
    return 0
  fi

  if [ ! -x /usr/bin/rpcinfo ]; then
    log_action_msg "WARNING: rpcinfo not available - RPC services may be unavailable!"
    log_action_msg "         (Commenting out the rpc services in inetd.conf will"
    log_action_msg "         disable this message)"
  elif ! /usr/bin/rpcinfo -u localhost portmapper >/dev/null 2>&1; then
    log_action_msg "WARNING: portmapper inactive - RPC services unavailable!"
    log_action_msg "         (Commenting out the rpc services in inetd.conf will"
    log_action_msg "         disable this message)"
  fi
}

checknoservices () {
    if ! grep -q "^[[:alnum:]/]" /etc/inetd.conf; then
   log_action_msg "Not starting internet superserver: no services enabled"
   exit 0
    fi
}

case "$1" in
    start)
   checknoservices
        checkportmap
   log_daemon_msg "Starting internet superserver" "inetd"
   start-stop-daemon --start --quiet --pidfile /var/run/inetd.pid \
       --oknodo --exec $DAEMON -- $OPTIONS
   log_end_msg 0
   ;;
    stop)
   log_daemon_msg "Stopping internet superserver" "inetd"
   start-stop-daemon --stop --quiet --pidfile /var/run/inetd.pid \
       --oknodo
   log_end_msg 0
   ;;
    reload|force-reload)
   log_daemon_msg "Reloading internet superserver" "inetd"
   start-stop-daemon --stop --quiet --pidfile /var/run/inetd.pid \
       --oknodo --signal 1
   log_end_msg 0
   ;;
    restart)
   checkportmap
   log_daemon_msg "Restarting internet superserver" "inetd"
   start-stop-daemon --stop --quiet --pidfile /var/run/inetd.pid \
       --oknodo
   checknoservices
   sleep 1
   start-stop-daemon --start --quiet --pidfile /var/run/inetd.pid \
       --exec $DAEMON -- $OPTIONS
   log_end_msg 0
   ;;
    status)
   status_of_proc -p /var/run/inetd.pid $DAEMON inetd && exit 0 || exit $?
   ;;
    *)
   echo "Usage: /etc/init.d/openbsd-inetd {start|stop|reload|force-reload|restart|status}"
   exit 2
   ;;
esac

exit 0





Muchas gracias por su ayuda.
En línea

FAKEz

Desconectado Desconectado

Mensajes: 82


Fakez------


Ver Perfil
Re: Internet Super-Server en ubuntu 11.10 destock (inetd)
« Respuesta #3 en: 4 Julio 2012, 04:47 am »

* Not starting internet superserver: no services enabled

supongo que de algun archivo de configuracion falta habilitarlo con un "yes" pero busco no lo he encontrado,si alguien me puede dar una mano , muchas gracias.
« Última modificación: 4 Julio 2012, 04:57 am por FAKEz » En línea

ccrunch


Desconectado Desconectado

Mensajes: 1.050



Ver Perfil WWW
Re: Internet Super-Server en ubuntu 11.10 destock (inetd)
« Respuesta #4 en: 4 Julio 2012, 10:58 am »

Pues lamento no poder ayudarte. Lo único que se me ocurre, es que uses la orden locate.

Es lo bueno de ubuntu. Te pones en la consola como superusuario, y pones locate nombre_archivo y te lo tiene que encontrar (si existe).

Más cosas no se me ocurren (tampoco soy "expero" en linux).

Salu2
En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
CloudSN: el super notificador para Ubuntu
Noticias
wolfbcn 0 1,313 Último mensaje 28 Mayo 2010, 13:48 pm
por wolfbcn
Motion (Ubuntu Server)
GNU/Linux
mk_137 1 4,774 Último mensaje 17 Julio 2010, 23:06 pm
por mk_137
Problema al instalar Ubuntu 10.10 server con windos xp y 2003 server
GNU/Linux
Norlak 5 6,502 Último mensaje 27 Octubre 2010, 18:11 pm
por lealesdibua
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines