You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-9Lines changed: 8 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -71,18 +71,17 @@ _Important:_ By default the user can install new software using `apt` (eg. `sudo
71
71
72
72
You can either change the environment variables using `-e` flag during `docker run`_or_ by changing just the `environment` section in the `compose.yaml` file.
73
73
74
-
Docker run example, which disables both APT and sudo group: `docker run --shm-size 2g -it -e ALLOW_APT=no -e ALLOW_SUDO=no -p 2222:22 danger89/xfcevdi_x2go:latest`
74
+
Docker run example with `-e`, which disables APT and require password for `sudo apt`: `docker run --shm-size 2g -it -e ALLOW_APT=no -e ENTER_PASS=yes -p 2222:22 danger89/xfcevdi_x2go:latest`
75
75
76
76
Available environment variables::
77
77
78
-
| Env. variable | Type | Description | Default value |
|`PASS`| string | Change password for user |_auto-generated pass_|
83
+
|`ALLOW_APT`| string | User is allowed to use APT commands |`yes`|
84
+
|`ENTER_PASS`| string | Require to enter password for specific APT commands |`no`|
86
85
87
86
**NOTE 1:** Since [XFCE VDI v2.0](https://hub.docker.com/r/danger89/xfcevdi_x2go/tags), the new user is _only allowed_ to execute `apt` commands as root user. What can be changed on line 60 & 62 in [setup.sh script](scripts/setup.sh) and build your own Docker image.
0 commit comments