Bug 723 - other account name for uid=0
other account name for uid=0
Status: NEW
Product: Sudo
Classification: Unclassified
Component: Sudo
1.8.12
PC Linux
: low enhancement
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-10-18 13:32 MDT by Konstantin
Modified: 2015-10-18 13:33 MDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.