[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: rshd and securetty



Cristian Gafton wrote:

> The latest version of PAM (0.56) have pam_securetty and pam_rhosts modules
> improved. Those modules accept 'debug' arguments and you can see exactly
> what is your problem. (Adding the 'debug' features was my primary goal
> when I was hunting for /dev/tty... It didn't work for me either :-), and I
> had to add the 'debug' arguments)
> 
Thanks a lot.
Maybe you could add something like, because a missing .rhosts file still
isn't diagnosed.

--- pam_rhosts_auth.c.orig      Fri Feb 21 23:07:27 1997
+++ pam_rhosts_auth.c   Fri Feb 21 23:11:03 1997
@@ -362,8 +362,10 @@
     hostf = fopen(pbuf, "r");
     (void)seteuid(uid);
 
-    if (hostf == NULL)
+    if (hostf == NULL) {
+       opts->last_error = "open failed for .rhosts";
        return 1;
+    }
 
     /*
      * If not a regular file, or is owned by someone other than



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []