Bugzilla – Bug 857
sudo ends with message "unable to set runas group vector"
Last modified: 2018-11-16 11:14:39 MST
On AIX sudo gives always the message "unable to set runas group vector". As a result sudo is not switching to the effective user and group. The bug is identified in source code "lib/util/getgrouplist.c" line 141: grset++; The code is first retrieving all supplemental groups of a user with "grset = getgrset (name). After that grset is a char string i.e. "202,1". With buggy grset++ grset is than pointing to "02,1", interpreting 02 as the first supplemental Group id, which is wrong! Easy solution is to remove line 141 "grset++;" completely!
Thanks for debugging this. I've committed the fix: https://www.sudo.ws/repos/sudo/rev/03b19227cab2
Fixed in sudo 1.8.26.