From 7c59f1d077f8bc3a141845331977ba2ec869b12d Mon Sep 17 00:00:00 2001 From: Dan Čermák <45594031+dcermak@users.noreply.github.com> Date: Thu, 5 May 2022 09:52:14 +0200 Subject: Fix usermod call in rootless_tutorial.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `usermod` calls in rootless_tutorial.md were only adding a very narrow range for subuids and subgids, which will cause failures with containers where a file is owned by a user or group with a uid/gid > 1001. Signed-off-by: Dan Čermák --- docs/tutorials/rootless_tutorial.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/tutorials') diff --git a/docs/tutorials/rootless_tutorial.md b/docs/tutorials/rootless_tutorial.md index 5d20f2cc0..57f819d6d 100644 --- a/docs/tutorials/rootless_tutorial.md +++ b/docs/tutorials/rootless_tutorial.md @@ -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. ``` -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 -/etc/subuid:johndoe:200000:1001 -/etc/subgid:johndoe:200000:1001 +/etc/subuid:johndoe:100000:65536 +/etc/subgid:johndoe:100000:65536 ``` ### Enable unprivileged `ping` -- cgit v1.2.3-54-g00ecf