get_os_users lists system accounts and leaves out real users #19

Closed
opened 2026-10-14 08:58:51 +00:00 by christianmanivong · 0 comments
Owner

system_mixin.py ~217: if uname not in result and uid_int < 1000 or uid_int == 0: adds daemon, bin, … and skips uid ≥ 1000. Precedence and comparison look inverted (intent to confirm). ~193-197: access.users(uid).get() returns the user record, not ACL roles, so "Administrator" in str(roles) hardly ever matches.

Prio P3.

`system_mixin.py` ~217: `if uname not in result and uid_int < 1000 or uid_int == 0:` adds daemon, bin, … and skips uid ≥ 1000. Precedence and comparison look inverted (intent to confirm). ~193-197: `access.users(uid).get()` returns the user record, not ACL roles, so `"Administrator" in str(roles)` hardly ever matches. Prio P3.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: NAPALM/napalm-proxmox#19