(imported topic written by ajdyer200091)
How would you have BigFix report on users contained in the etc\sudoers file?
I am a newby
Alan
(imported topic written by ajdyer200091)
How would you have BigFix report on users contained in the etc\sudoers file?
I am a newby
Alan
(imported comment written by NoahSalzman)
The most simplistic approach is:
lines of file “/etc/sudoers”
But, of course, you want just the users so you can do something like:
(preceding texts of firsts “ALL=” of lines of file “/etc/sudoers”) whose (character 0 of it is not “#”)
You can modify the “ALL=” string to narrow the users you are reporting on by permission level.
(imported comment written by ajdyer200091)
Thanks Noah. I’ll try that.
(imported comment written by ajdyer200091)
Is there a way to extract only certain information from the file. For example ony user ID’s that start with a1, b1 etc
(imported comment written by NoahSalzman)
Anything is possible with a few “preceding texts” or a regex incantation… or even a shell script run via Action Script if we get desperate.
Why don’t you post an abbreviated and sanitized version of your sudoers file. We can’t really know how to answer the question until we see the complexity required to parse the file.