-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Re-readd root/admin user detection #6703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Re-readd root/admin user detection #6703
Conversation
|
Why run |
|
Wondering if it'd be better to use available API as before, and if it returns root as user, then use the command to confirm it? |
|
How common is it for servers to not contain the id binary? I'd question whether it's better to have it default to warning when it's missing - but guess it depends how often it's missing Logic being a host can easily fix it themselves if it shows up due to missing id binary |
0d4e696 to
f988ac1
Compare
This PR re-adds the root reverted in e8830b2. The check was throwing false positives because of a OpenJDk bug (no issue # yet, will add here later). This PR uses a different method for getting the UID (executing the id command), which isn't affected by the openjdk issue.