You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Iterate over usernames, run the query, and compare results
195
-
forusernameinusernames:
196
-
query=f"SELECT u.username, g.groupname FROM users u JOIN user_groups ug ON u.uid = ug.uid JOIN groups g ON ug.gid = g.gid WHERE u.username = '{username}' ORDER BY g.groupname;"
# Iterate over usernames, run the query, and compare results
215
+
forusernameinusernames:
216
+
query=f"SELECT u.username, g.groupname FROM users u JOIN user_groups ug ON u.uid = ug.uid JOIN groups g ON ug.gid = g.gid WHERE u.username = '{username}' ORDER BY g.groupname;"
217
+
query_result=run_osquery(query)
218
+
parsed_result=parse_json(query_result)
219
+
compare_results(username, parsed_result)
220
+
221
+
# Check if all nixbld users are in the nixbld group
222
+
check_nixbld_users()
223
+
200
224
201
-
# Check if all nixbld users are in the nixbld group
0 commit comments