Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 5197

Summary: pwdb header files break usermode
Product: [Retired] Red Hat Raw Hide Reporter: Nalin Dahyabhai <nalin.dahyabhai>
Component: usermodeAssignee: Michael K. Johnson <johnsonm>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-09-20 14:39:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nalin Dahyabhai 1999-09-17 20:34:35 UTC
Including the pwdb_public.h header in userhelper.c lets it
#define getlogin() to pwdb_posix_getlogin() (and similar
things with getpw* and getgr*), which breaks that wonderful
"can shut down as non-root user" function that showed up in
6.0, but hasn't gone away in Rawhide.

Comment 1 Michael K. Johnson 1999-09-20 01:18:59 UTC
pwdb_public.h has always, since the first version, been
included in userhelper.c...

Furthermore, I just tested shutdown -r now as a normal user
and it worked fine.  So something else is wrong, or there
was some transient bug in an earlier RawHide that is now
fixed.

Comment 2 Michael K. Johnson 1999-09-20 13:57:59 UTC
As pointed out by Nalin in private email, *using hesiod or ldap or
other authentication services that pam supports but pwdb does not,*
the wrapper functions break.

pwdb will be changed not to define those functions, and we'll
rebuild usermode, and then things should work correctly.  So this
is really a bug in pwdb, but we'll keep it filed against usermode
because usermode needs to be rebuilt after pwdb is changed before
the problem goes away.

In the long term, pwdb is just going to disappear.  Improvements
in nss have rendered it redundant.

Comment 3 Michael K. Johnson 1999-09-20 14:39:59 UTC
This will be fixed in usermode-1.12 and later, which will appear
in the next RawHide and in Red Hat Linux 6.1.