Bienvenido a   :: LINUX SOLUTIONS CENTER ::

México,  Viernes 21 de Noviembre del 2008   
  Hora Local
Home Servidores Alta del servicio rexec en servidores LINUX
LINUX es nuestra Especialidad: · Servidores de Internet · Monitoreo de Servidores y Enlaces · Virtualizacion · Firewalls con OpenSource · Proxy Servers (Web Cache) · DNS y DHCP · Web Server · Webmail · NAT's · IP Forwarding · FTP Server · Email Attachmnt Filtering · Reportes estadisticos · Linux Gateway/Router · Bloqueo de Puertos · Email Server · Reporte de todo el trafico interno/externo · Administracion de Ancho de banda · VPN's con Open VPN · Soporte Ténico comercial · Administración de servidores Linux (RedHat EL/AS, Debian, CentOs, etc) · Instalación y Configuración de Servidores · Configuración de servidores de E-Mail (Sendmail, Qmail, Postfix con virtual domains) · Antvirus con OpenSource · Administración de LVM · y mas... mucho mas
Linux Solutions C.
Acerca de
Actualidad
GNU/Linux
Gente en Línea
Tenemos 39 invitados conectado
Estadísticas
Ver contenido por hits : 192240
Acceso



Google Translation

 
Temas Relacionados

GULEV | Software Libre


Banner Advertisement
Alta del servicio rexec en servidores LINUX PDF Imprimir E-mail
Servidores
Escrito por Domingo Varela   
Jueves, 06 de Marzo de 2008 19:08

Procedimiento para dar de alta los servicios R en Sistemas Linux.


1)    Verificar si se cuenta con el paquete instalado con el siguiente comando:

  • rpm –qa rsh

2)    Verificar si el servicio esta activado:

[root@localhost root]# chkconfig --list rexec

  • rexec           on

[root@localhost root]#

3)    Si el servicio no estuviera activo, entonces ejecutar el siguiente comando (ntsysv) y con las teclas de flecha à ß pero hacia abajo buscar el servicio rexec y con barra espaciadora selecciona el servicio rexec:

  • [root@localhost root]# ntsysv
  • Seleccionar servicio
  • Reiniciar serivicio:
    • Service xinetd restart ó
    • killall –USR1 xinetd
  • Verificar el servicio con: chkconfig --list rexec

4)    Agregar en el archivo /etc/hosts de ambos servidores el nombre del hostname y el numero IP.

5)    Modificar el archivo /etc/securetty y agregar las siguientes líneas

  • rexec
  • rsh
  • rlogin

6)    Comentar la línea que se ilustra abajo en negrita en el archivo /etc/pam.d/rexec:

[root@localhost pam.d]# cat rexec
#%PAM-1.0
# For root login to succeed here with pam_securetty, "rexec" must be
# listed in /etc/securetty.
#auth       required    /lib/security/pam_nologin.so
#auth       required    /lib/security/pam_securetty.so
auth       required     /lib/security/pam_env.so
#auth       required     /lib/security/pam_rhosts_auth.so
auth       required     /lib/security/pam_stack.so service=system-auth
account    required     /lib/security/pam_stack.so service=system-auth
session    required     /lib/security/pam_stack.so service=system-auth

7)    Modificar el archivo del servicio rexec que se localiza en /etc/xinetd.d/rexec

# default: off
# description: Rexecd is the server for the rexec(3) routine.  The server \
#       provides remote execution facilities with authentication based \
#       on user names and passwords.
service exec
{
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success          += USERID
        log_on_failure          += USERID
        server                  = /usr/sbin/in.rexecd
}

 

# default: off
# description: Rexecd is the server for the rexec(3) routine.  The server \
#       provides remote execution facilities with authentication based \
#       on user names and passwords.
service exec
{
       # disable = no
       # enable                  = yes
        socket_type             = stream
        wait                    = no
        user                    = root
        log_on_success          += USERID
        log_on_failure          += USERID
        server                  = /usr/sbin/in.rexecd
}

8)    Usar el siguiente comando para enviar una señal  SIGUSR1 al xinetd de la siguiente manera:

  • $killall –USR1 xinetd   ó  $killall –USR2 xinetd


9)    Ahora verificaremos que el comando y/o servicio rexec funcione correctamente, aquí un par de ejemplos:

  • $ rexec nodename –l account    ls -la
  • Password: xxxxxxxx
  • $ rexec fénix date
  • Password: xxxxxxxx
  • Fri Nov 11 17:53:04 CST 2005
  • $

  • [root@localhost root]# rexec otherhost date
  • Password:
  • Fri Nov 11 18:05:09 CST 2005
  • [root@localhost root]#

 

 

 


LSC Support Online
SysOp
Tech Support
Encuestas
¿Cuál es tu navegador favorito?
 
Anunciate aquí

Centro de Soluciones Linux

KoalaSoft-Sitio de Amigos

ODM SYSTEM MEXICO

No. de Visitas
mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterHoy443
mod_vvisit_counterAyer636
mod_vvisit_counterEsta Semana2590
mod_vvisit_counterEste Mes9228
mod_vvisit_counterTotal76934
Linuxsc en RSS
Archivo Historico

Ultimo Reporte