From 2e5bdee20b6c910abad2257383f58b5efecf1de1 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Sun, 28 Jul 2024 19:18:56 +0200 Subject: [PATCH] Update openpanel.md --- documentation/docs/admin/users/openpanel.md | 62 ++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/documentation/docs/admin/users/openpanel.md b/documentation/docs/admin/users/openpanel.md index 6b89da7c..5ff1c0f2 100644 --- a/documentation/docs/admin/users/openpanel.md +++ b/documentation/docs/admin/users/openpanel.md @@ -312,7 +312,7 @@ opencli user-unsuspend filip -To change IP address for a user, click on the 'Edit Information' link for the user, then elect the new IP address and click on 'Save changes'. +To change IP address for a user, click on the 'Edit Information' link for the user, then select the new IP address and click on 'Save changes'. Step 1. | Step 2. :-------------------------:|:-------------------------: @@ -353,6 +353,66 @@ opencli user-ip filip delete +## Grant Sudo Access + + + + +To allow users to install new services and have unrestricted access inside their container, click on the 'Configuration' button for the user, then check the 'Sudo Access' option. + +This will allow user to use the `su -` command and switch to root user inside their container. + +Step 1. | Step 2. +:-------------------------:|:-------------------------: +![openadmin users grant sudo step 1](/img/admin/openadmin_users_sudo1.png) | ![openadmin users grant sudo step 2](/img/admin/openadmin_users_sudo2.png) + + + + +To allow users to install new services and have unrestricted access inside their container, run the following command: + +```bash +opencli user-sudo +``` + +Example: + +```bash +# opencli user-sudo stefan enable +'su -' access enabled for user stefan. +``` + +To remove sudo access from user: + +```bash +opencli user-ip disable +``` +Example: + +```bash +# opencli user-sudo stefan disable +'su -' access disabled for user stefan. +``` + +To check current sudo status for user: + +```bash +opencli user-ip status +``` +Example: + +```bash +# opencli user-sudo stefan status +'su -' is enabled for user stefan. +``` + + + + + + + + ## Delete User