Bug 723

Summary: other account name for uid=0
Product: Sudo Reporter: Konstantin <oks-mgn>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: NEW ---    
Severity: enhancement CC: oks-mgn
Priority: low    
Version: 1.8.12   
Hardware: PC   
OS: Linux   

Description Konstantin 2015-10-18 13:32:08 MDT
I have other account name for user with uid=0, not "root".
But this name is hardly encoded into source.
I think, it is in file testsudoers.c. There is line:
user_name = argc ? *argv++ : "root";

Other programs, ex. "su", work correctly with other than "root" account name. They check for uid=0, not literal name.

Can You, please, add to "sudo" ability to automatically find literal user name with uid=0.