[sudo-users] Problem with Red Hat v.3 and "Memory fault" error
elan_mbx2 at yahoo.com
Fri Sep 14 22:15:50 EDT 2007
--- "Todd C. Miller" <Todd.Miller at courtesan.com> wrote:
> In message <704385.67225.qm at web52009.mail.re2.yahoo.com>
> so spake Mike Watz (elan_mbx2):
> > So I've built 1.6.9 on a Red Hat v.3 box. Now when I execute sudo for the
> > first time I get a "Memory fault" message. After the fault I run sudo
> > and everything works fine. So after I receive my token it apparently
> > have a problem... but before I have a token it causes a "Memory fault"...
> > None of the other environments I've built for (RHEL4, RHEL5, Sol 8-10, HPUX
> > 11i) have had this issue...
> Chances are you are hitting a PAM bug in RHEL3. A similar issue
> was found with Solaris prior to Solaris 8 so it is possible that
> the bug is similar. Please try the following diff. If that doesn't
> work, running configure with the --without-pam option should give
> you a working sudo.
> - todd
> Index: auth/pam.c
> diff -u auth/pam.c:220.127.116.11 auth/pam.c:18.104.22.168
> --- auth/pam.c:22.214.171.124 Sun Jul 22 08:14:53 2007
> +++ auth/pam.c Thu Sep 13 18:42:52 2007
> @@ -190,9 +190,11 @@
> * Set PAM_USER to the user we are changing *to* and
> * set PAM_RUSER to the user we are coming *from*.
> + * We set PAM_RHOST to avoid a bug in Solaris 7 and below.
> (void) pam_set_item(pamh, PAM_USER, pw->pw_name);
> (void) pam_set_item(pamh, PAM_RUSER, user_name);
> + (void) pam_set_item(pamh, PAM_RHOST, user_host);
> * Set credentials (may include resource limits, device ownership, etc).
Thanks for the quick replay. No joy, however. I made the code change and then
experienced sudo simply hanging. I couldn't break out, either. So I killed my
ssh session. The built sudo *did* work after I'd received a token, however.
I also tried building only with the --with-ldap option (left out --with-pam)
and I still receive the "Memory fault" without pam support built...
Got a little couch potato?
Check out fun summer activities for kids.
More information about the sudo-users