[Bug 423252] Re: NSS using LDAP on Karmic breaks 'su' and 'sudo'

Andreas Sandberg launchpad.net at andreas.sandberg.pp.se
Mon Apr 5 00:07:12 BST 2010


It seems like this wan't an error in the handling of the setuid bit
after all. It seems like the EUID is reset to UID after getpwnam is
called. Attaching a simple test program. Compile and change the owner to
root and set the setuid bit.

Expected output:
EUID0: 0, EUID1: 0

On systems with broken LDAP support (EUID1 will be set to the UID of the process):
EUID0: 0, EUID1: 1000


** Attachment added: "getpwnam_xid_test.c"
   http://launchpadlibrarian.net/43116436/getpwnam_xid_test.c

-- 
NSS using LDAP on Karmic breaks 'su' and 'sudo'
https://bugs.launchpad.net/bugs/423252
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libnss-ldap in ubuntu.



More information about the Ubuntu-server-bugs mailing list