From c2b841d300dafd19ab2bcbce450fa66ee7302208 Mon Sep 17 00:00:00 2001 From: dogukanoksuz Date: Mon, 18 Dec 2023 19:07:56 +0000 Subject: [PATCH] feature: SSH key usage on tunnels --- app/Http/Controllers/API/Server/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/API/Server/UserController.php b/app/Http/Controllers/API/Server/UserController.php index 5d80cdeb..ec688f39 100644 --- a/app/Http/Controllers/API/Server/UserController.php +++ b/app/Http/Controllers/API/Server/UserController.php @@ -272,7 +272,7 @@ public function addSudoers() return response()->json(['name' => 'Another user exists with this name.'], Response::HTTP_UNPROCESSABLE_ENTITY); } $output = Command::runSudo( - 'echo "{:name} ALL=(ALL:ALL) ALL" | sudo -p "liman-pass-sudo" tee /etc/sudoers.d/{:name} &> /dev/null && echo 1 || echo 0', + 'echo "{:name} ALL=(ALL:ALL) ALL" | ' . sudo() . ' tee /etc/sudoers.d/{:name} &> /dev/null && echo 1 || echo 0', [ 'name' => $name, ]