Re:Killing processes that don't want to die
by cyphar on Tuesday September 25, 2018 @01:11AM
(#18063761)
In a shell you can do this with `unshare -prf` which will create an unprivileged user namespace (mapping only yourself -- if you want more complicated stuff you'll need to use rootlesskit[1] or a shell script). Note that most programs really don't like being in an unprivileged user namespace (something the rootless-containers project has been working on fixing so you can have completely unprivileged containers in every sense of the word "just work").
[1]: https://github.com/rootless-containers/rootlesskit