mirror of
https://github.com/containers/podman.git
synced 2025-07-04 01:48:28 +08:00
Merge pull request #14122 from dcermak/patch-1
Fix usermod call in rootless_tutorial.md
This commit is contained in:
@ -81,10 +81,10 @@ If you update either `/etc/subuid` or `/etc/subgid`, you need to stop all the ru
|
|||||||
Rather than updating the files directly, the `usermod` program can be used to assign UIDs and GIDs to a user.
|
Rather than updating the files directly, the `usermod` program can be used to assign UIDs and GIDs to a user.
|
||||||
|
|
||||||
```
|
```
|
||||||
usermod --add-subuids 200000-201000 --add-subgids 200000-201000 johndoe
|
usermod --add-subuids 100000-165535 --add-subgids 100000-165535 johndoe
|
||||||
grep johndoe /etc/subuid /etc/subgid
|
grep johndoe /etc/subuid /etc/subgid
|
||||||
/etc/subuid:johndoe:200000:1001
|
/etc/subuid:johndoe:100000:65536
|
||||||
/etc/subgid:johndoe:200000:1001
|
/etc/subgid:johndoe:100000:65536
|
||||||
```
|
```
|
||||||
|
|
||||||
### Enable unprivileged `ping`
|
### Enable unprivileged `ping`
|
||||||
|
Reference in New Issue
Block a user