Bugzilla – Bug 59
Problem on sudo gid
Last modified: 2002-01-10 14:10:40 MST
sudo to root does not pick up the gid. Therefore, certain software does not shutdown cleanly. Output of the sudo is as below :- uid=0(root) gid=0(system) groups=1(staff),204(operator) Actual root uid & gid is as below :- uid=0(root) gid=0(system) groups=2(bin),3(sys),7(security),8(cron),10(audit),101 (dba),80(fnusr),82(fnadmin),83(fnop)
This was intentional. When running things as root sudo preserves the group vector of the invoking user. This behavior has changed in sudo 1.6.4 which is due to be released next Monday.