Updated users in post-install of alpine-server setup.
This commit is contained in:
parent
8c37c16088
commit
720847971c
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ To run containers securely; in an environment with fewer privileges, a user is n
|
||||||
|
|
||||||
## Wheel
|
## Wheel
|
||||||
|
|
||||||
Before creating the user install `doas`, to use when root is required:
|
Before creating the user, install `doas`. To be able to "do as" root when it is required:
|
||||||
|
|
||||||
```
|
```
|
||||||
# apk add doas
|
# apk add doas
|
||||||
|
@ -18,10 +18,10 @@ permit persist :wheel as root
|
||||||
|
|
||||||
## Adding a user
|
## Adding a user
|
||||||
|
|
||||||
Adding a user in Alpine Linux can be done using the `setup-user` script. Here we can specify the name, groups and more:
|
A user can be added in Alpine Linux with the `setup-user` script. Here we can specify the name, groups and more:
|
||||||
|
|
||||||
```
|
```
|
||||||
# setup-user -g wheel,_power <username>
|
# setup-user -g wheel <username>
|
||||||
# passwd <username>
|
# passwd <username>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue