mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update openpanel.md
This commit is contained in:
@@ -312,7 +312,7 @@ opencli user-unsuspend filip
|
||||
<Tabs>
|
||||
<TabItem value="openadmin-user-ip" label="With OpenAdmin" default>
|
||||
|
||||
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
|
||||
|
||||
<Tabs>
|
||||
<TabItem value="openadmin-user-ip" label="With OpenAdmin" default>
|
||||
|
||||
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.
|
||||
:-------------------------:|:-------------------------:
|
||||
 | 
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="CLI-user-ip" label="With OpenCLI">
|
||||
|
||||
To allow users to install new services and have unrestricted access inside their container, run the following command:
|
||||
|
||||
```bash
|
||||
opencli user-sudo <USERNAME> <ENABLE/DIASBLE/STATUS>
|
||||
```
|
||||
|
||||
Example:
|
||||
|
||||
```bash
|
||||
# opencli user-sudo stefan enable
|
||||
'su -' access enabled for user stefan.
|
||||
```
|
||||
|
||||
To remove sudo access from user:
|
||||
|
||||
```bash
|
||||
opencli user-ip <USERNAME> 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 <USERNAME> status
|
||||
```
|
||||
Example:
|
||||
|
||||
```bash
|
||||
# opencli user-sudo stefan status
|
||||
'su -' is enabled for user stefan.
|
||||
```
|
||||
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
||||
|
||||
|
||||
## Delete User
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user