Changed adduser to useradd for compatibility
This commit is contained in:
parent
16f8c7841e
commit
3f5272b83b
|
@ -3,7 +3,7 @@ import datetime
|
||||||
|
|
||||||
def get_linux_commands_to_add_user(username):
|
def get_linux_commands_to_add_user(username):
|
||||||
return [
|
return [
|
||||||
'adduser', # https://linux.die.net/man/8/adduser
|
'useradd', # https://linux.die.net/man/8/useradd
|
||||||
'-M', # Do not create homedir
|
'-M', # Do not create homedir
|
||||||
'--expiredate', # The date on which the user account will be disabled.
|
'--expiredate', # The date on which the user account will be disabled.
|
||||||
datetime.datetime.today().strftime('%Y-%m-%d'),
|
datetime.datetime.today().strftime('%Y-%m-%d'),
|
||||||
|
|
Loading…
Reference in New Issue