From: Todd C. Miller Date: Fri, 6 May 2016 20:30:46 +0000 (-0600) Subject: Newer versions of Ubuntu have switched from using the "admin" group X-Git-Tag: SUDO_1_8_17^2~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ee1e5bbcbd047a9bd0f9fd18434393e149498c0;p=sudo Newer versions of Ubuntu have switched from using the "admin" group to the "sudo" group to align with Debian. create_admin_success_flag() now accepts either one. https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1387347 --- diff --git a/plugins/sudoers/sudoers.c b/plugins/sudoers/sudoers.c index d95ba8067..2e3137682 100644 --- a/plugins/sudoers/sudoers.c +++ b/plugins/sudoers/sudoers.c @@ -1266,8 +1266,9 @@ create_admin_success_flag(void) int len, rval = -1; debug_decl(create_admin_success_flag, SUDOERS_DEBUG_PLUGIN) - /* Check whether the user is in the admin group. */ - if (!user_in_group(sudo_user.pw, "admin")) + /* Check whether the user is in the sudo or admin group. */ + if (!user_in_group(sudo_user.pw, "sudo") && + !user_in_group(sudo_user.pw, "admin")) debug_return_int(true); /* Build path to flag file. */