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

- From: Alejandro Colomar \<alx@kernel.org\>
- Date: 2023-08-29 21:41:59 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2023/08/259448
- Thread: https://ratatoskr.run/linux-man/2023/08/259441/t.md

```text
On 2023-08-29 23:39, Richard Weinberger wrote:
> ----- Ursprüngliche Mail -----
>> Von: "Alejandro Colomar" [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.

I'm on Debian Sid.  That's quite unlikely :p
(Although Debian Sid still runs make-4.3, so it wouldn't be crazy).

> 
> 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

-- 
<http://www.alejandro-colomar.es/>
GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5

```

## Attachments

- [OpenPGP\_signature](https://ratatoskr.run/linux-api/2023/08/259448/attachment/0) (application/pgp-signature, 833 bytes)
