anaconda: mark 'qubes' user name as reserved
'qubes' group is used internally, but useradd want to create a new group named as new user, so 'qubes' user name should also be avoided. Fixes QubesOS/qubes-issues#3777
This commit is contained in:
parent
e572efedd4
commit
017018b38e
@ -123,7 +123,7 @@ def validatePassword(pw, user="root", settings=None, minlen=None):
|
||||
return (valid, strength, message)
|
||||
|
||||
def check_username(name):
|
||||
if name in os.listdir("/") + ["root", "home", "daemon", "system"]:
|
||||
if name in os.listdir("/") + ["root", "home", "daemon", "system", "qubes"]:
|
||||
return (False, _("User name is reserved for system: %s") % name)
|
||||
|
||||
if name.startswith("-"):
|
||||
|
Loading…
Reference in New Issue
Block a user