pam_group vs. multiple group lines



Hi,

I think I found a deficiency wrt. to pam_group (which also hits sudo(8)
so this might be libc related instead).

I found this while trying to migrate groups into LDAP, but you don't
need LDAP to reproduce this, simply place the following in /etc/group

wheel:*:0:root
wheel:*:0:us

% getent group|grep wheel;id
wheel:*:0:root
wheel:*:0:us
uid=1001(us) gid=1000(us) groups=1000(us),0(wheel),80(www)

As you can see, getent(1) and id(1) work fine. File access also works
like expected, except for su(8) (because of pam_group group=wheel in
pam.d/su)

% su -
su: Sorry

Combine the wheel entries back into one line and su(8) suddenly starts
working again. Same problem hits sudo(8) if your are using a %wheel
line. Since there is no pam.d/sudo on my system I think the bug probably
lies in libc itself.

Is this expected behaviour? I'd classify it as bug ...

Cheers,
Ulrich Spoerlein
--
It is better to remain silent and be thought a fool,
than to speak, and remove all doubt.
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: bind is trying to kill me
    ... > brings up over 1900 hits. ... is a bug that prompts you to register even though you don't need it. ... The first set up updates will fix that bug. ...
    (Fedora)
  • Re: reiser4 plugins
    ... this bug you mention is probably not an fs bug. ... see if it can get to things twice when it hits an error or if you can ... for non-reiserfs filesystems, ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: pata_serverworks oopses in latest -git
    ... time it's triggered because it hits the BUG() at: ... Can you provide using with 'lspci -vvvxxxn' output, as root? ...
    (Linux-Kernel)
  • VB.Net 2k3 debugger not going to the bad line of code
    ... Though it was working in the past, now when I run a debug ... of my program in the studio and it hits some bug, ...
    (microsoft.public.dotnet.languages.vb)
  • KEdit question
    ... those annoying periods that appear on the screen each time one hits the ... Or is this a bug? ... Jerry ...
    (Fedora)