Programs that make changes system-wide require sudo unless I am already the root user.Now, the question is: how exactly does the system figure out that I am (not) root?Does it:Check to see if I'm in a specific group? If so, which group do I need to be in?Check against a well-known ID of root itself (i.e. the root user is hard-coded into the source)?If so, what happens if my root account gets corrupted? Would I be forced to reinstall the OS, since there's no way to create another account with root privileges?Check my name/group against some file's contents and granting the right privilege? If so, which file contains this information?Do something else? If so, what does it do?
How sudo/root-ness detection works
linux;security;users;sudo;root