Skip to content

Commit

Permalink
revise restricted system usernames rockstor#2634
Browse files Browse the repository at this point in the history
Update to reflect current OS base (openSUSE), and its users
associated with common system services.
  • Loading branch information
phillxnet committed Jul 9, 2024
1 parent 83030d1 commit 5b1a6e2
Showing 1 changed file with 32 additions and 15 deletions.
47 changes: 32 additions & 15 deletions src/rockstor/storageadmin/views/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,45 @@

class UserMixin(object):
serializer_class = SUserSerializer
# List based on subsection "Default system users":
# https://doc.opensuse.org/documentation/leap/startup/html/book-startup/cha-yast-userman.html
exclude_list = (
"root",
"nobody",
"at",
"avahi",
"bin",
"chrony",
"daemon",
"adm",
"sync",
"shutdown",
"halt",
"dockremap",
"gdm",
"lp",
"mail",
"operator",
"dbus",
"rpc",
"avahi",
"avahi-autoipd",
"rpcuser",
"nfsnobody",
"postgres",
"ntp",
"man",
"messagebus",
"nginx",
"nobody",
"nscd",
"ntp",
"pesign",
"polkitd",
"postfix",
"postgres",
"pulse",
"rockstor",
"root",
"rpc",
"rtkit",
"salt",
"scard",
"shellinabox",
"srvGeoClue",
"sshd",
"statd",
"systemd-coredump",
"systemd-network",
"systemd-timesync",
"tftp",
"unbound",
"upsd",
)

@classmethod
Expand Down

0 comments on commit 5b1a6e2

Please sign in to comment.