Voir dans /usr/doc/pam-0.68/html/pam-6.html
The authentication mechanism of this module is based on the contents of two files; 
/etc/hosts.equiv
     (or _PATH_HEQUIV in #include <netdb.h>) and ~/.rhosts. Firstly, hosts listed in 
the former file are
     treated as equivalent to the localhost. Secondly, entries in the user's own copy 
of the latter file is used
     to map "remote-host remote-user" pairs to that user's account on the current 
host. Access is
     granted to the user if their host is present in /etc/hosts.equiv and their remote 
account is identical
     to their local one, or if their remote account has an entry in their personal 
configuration file. 

En d'autres termes: cr�er un fichier /etc/hosts.equiv contenant une ligne comme:
MonDomaine.com MonLogin

PS: On aimerair que le mail soit sign� d'un nom plus �vocateur que "root"!

root a �crit :
> 
> J'utilise la mandrake 7.0, configur� en mode serveur, s�curit� moyenne.
> J'ai besoin de faire du rlogin et rsh sur cette machine � partir d'un
> serveur SUN.
> Le serveur Linux me demande syst�matiquement un mot de passe
> 
>  /etc/hosts.equiv avec +;
> $HOME/.rhosts avec +;
> 
> Contenu de /etc/pam.d/rlogin
> #%PAM-1.0
> auth       required /lib/security/pam_securetty.so
> auth       sufficient /lib/security/pam_rhosts_auth.so no_rhosts
> no_hosts_equiv debug
> auth       required /lib/security/pam_pwdb.so shadow nullok
> auth       required /lib/security/pam_nologin.so
> account    required /lib/security/pam_pwdb.so
> password   required /lib/security/pam_cracklib.so
> password   required /lib/security/pam_pwdb.so nullok use_authtok shadow
> md5
> session    required /lib/security/pam_pwdb.so
> contenu de /etc/pam.d/rlogin
> 
> La connection laisse la trace suivante
> Apr  4 17:20:35 MonServeur pam_rhosts_auth[1420]: denied to
> [EMAIL PROTECTED] as MonLogin: access not allowed
> 
> Merci pour l'aide
> A+

Répondre à