Re: [PATCH 2/3] user_namespaces.7: Document pitfall with negative permissions and user namespaces

From
Richard Weinberger <richard@nod.at>
Date
2023-08-29 21:40:20
Also in
linux-fsdevel, linux-man
Reply to
Alejandro Colomar, 2023-08-29
----- Ursprüngliche Mail -----
Von: "Alejandro Colomar" [off-list ref]
$ unshare ‐S 0 ‐G 0 ‐‐map‐users=100000,0,65536 ‐‐map‐groups=100000,0,65536 id
unshare: failed to execute ‐S: No such file or directory
Well, maybe your unshare tool is too old.
AFAIK it uses newuidmap only in recent versions.

You can achieve the very same als using podman in rootless mode.
e.g.
podman run -it -v /scratch:/scratch/ bash -c "cat /scratch/games/game.txt"

Thanks,
//richard
Thread (16 messages) 16 messages, 3 authors, last reply 2023-09-13
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help