-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") raise ValueError("I don't know how to create users on OS X")
elif which('pw'): elif which('pw'):
# Probably BSD # Probably BSD
return ['pw', 'useradd', '-m'] return ['pw', 'useradd', '-m', '-n']
else: else:
# This appears to be the Linux non-interactive adduser command: # This appears to be the Linux non-interactive adduser command:
return ['adduser', '-q', '--gecos', '""', '--disabled-password'] return ['adduser', '-q', '--gecos', '""', '--disabled-password']