-n is required

This commit is contained in:
Julien Cigar
2022-06-15 17:23:13 +02:00
parent 63b7defe1a
commit 1392aee195

View File

@@ -832,7 +832,7 @@ class LocalAuthenticator(Authenticator):
raise ValueError("I don't know how to create users on OS X")
elif which('pw'):
# Probably BSD
return ['pw', 'useradd', '-m']
return ['pw', 'useradd', '-m', '-n']
else:
# This appears to be the Linux non-interactive adduser command:
return ['adduser', '-q', '--gecos', '""', '--disabled-password']