From 3f5272b83b0e8589804ebf7c8596726525f1cc10 Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Thu, 3 Oct 2019 14:21:19 +0300 Subject: [PATCH] Changed adduser to useradd for compatibility --- monkey/infection_monkey/utils/linux/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/utils/linux/users.py b/monkey/infection_monkey/utils/linux/users.py index d58e04b7d..2bca94c50 100644 --- a/monkey/infection_monkey/utils/linux/users.py +++ b/monkey/infection_monkey/utils/linux/users.py @@ -3,7 +3,7 @@ import datetime def get_linux_commands_to_add_user(username): return [ - 'adduser', # https://linux.die.net/man/8/adduser + 'useradd', # https://linux.die.net/man/8/useradd '-M', # Do not create homedir '--expiredate', # The date on which the user account will be disabled. datetime.datetime.today().strftime('%Y-%m-%d'),