mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
-n is required
This commit is contained in:
@@ -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']
|
||||||
|
Reference in New Issue
Block a user