Bug 5197 - pwdb header files break usermode
Summary: pwdb header files break usermode
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: usermode
Version: 1.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Michael K. Johnson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-09-17 20:34 UTC by Nalin Dahyabhai
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-09-20 14:39:35 UTC

Attachments (Terms of Use)

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

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.

Note You need to log in before you can comment on or make changes to this bug.