From b803bfb7b445d2746cdf9960416f889405c3ad32 Mon Sep 17 00:00:00 2001 From: absurdo Date: Sat, 25 Nov 2023 17:09:59 +0100 Subject: [PATCH] Fixes in add user --- vendor/phangoapp/leviathanutils/src/Linux.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/phangoapp/leviathanutils/src/Linux.php b/vendor/phangoapp/leviathanutils/src/Linux.php index 32ede4c..1e8a531 100644 --- a/vendor/phangoapp/leviathanutils/src/Linux.php +++ b/vendor/phangoapp/leviathanutils/src/Linux.php @@ -93,7 +93,7 @@ class Linux { static public function add_new_user($username, $password='', $user_directory='', $shell='/usr/sbin/nologin') { - $str_user="sudo useradd -m -s ${shell} ${username}"; + $str_user="sudo useradd -m -s ${shell}"; if($password!='') { @@ -113,6 +113,8 @@ class Linux { } + $str_user.=" ${username}"; + Linux::shell_command([$str_user]); }