|
Bugzilla – Full Text Bug Listing |
| Summary: | Netgroup ldap search seems incorrect on 1.8.13 | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | sudo |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | low | ||
| Version: | 1.8.13 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
|
Description
sudo
2015-04-07 18:50:12 MDT
I think the netgroup stuff is a red herring. The problem appears to be that the LDAP search does not include the support3 group. Group handling has changed significantly in sudo. Can you show me the output of:
getent initgroups systems
and
getent group systems
on the Centos6.6 machine?
getent initgroups systems Unknown database: initgroups getent group systems systems:*:10001:systems getent group support3 support3:*:20009:systems,tech1 Looks like "getent initgroups" is not supported in CentOS 6 even though it is documented (works in CentOS 7). Please try running sudo with the following in /etc/sudo.conf (which you will probably have to create) Debug sudo /var/log/sudo_debug util@debug This will write debug info to /var/log/sudo_debug. We're specifically interested in a line like: Apr 8 15:31:21 sudo[1857] <- get_user_groups @ ./sudo.c:429 := groups=10001, 20009 Apr 8 16:02:05 sudo[30628] <- get_user_groups @ ./sudo.c:440 := groups=10001 This shows that the group vector for user systems only contains the systems group and not the support3 group. This is set when the user logs in. It's possible your nsswitch.conf is not setup to query the correct group databases or, if using the /etc/group file, you are testing a session that was logged in before support3 was added to /etc/group. Depending on what the underlying problem actually you might be able to work around it with a line like the following in /etc/sudo.conf Set group_source dynamic BTW, you can verify that there is a problem with the groups for user systems by creating a file owned by a different user (say root) and readable only by owner and group support3 (say mode 640). If systems cannot read the file then you know that group support3 is not in its group vector (set at login time). Does not appear to be a sudo problem. |