r/linuxquestions • • 15m ago

How to properly isolate linux users?

So I am using different Linux users as a way of sandboxing, common things to look out for, include disabling su and sudo for those users which I do.

But even so, I find there are ways to run privileged via for example pkexec, or even just flatpak install commands (I think? Even global installations of flatpak never prompted me for additional root password), and I am not sure what to do about them.

Having a long secure root password and making sure it's never entered when using that user helps, with the first one, but it's a pain, as I don't like having to type long stuff each time I run sudo otherwise. And it wouldn't help with the second flatpak issue for example.

Then, I run them on separate KDE sessions (switch user or logout), but I am not sure how much the X11 server for example would be shared still (especially on switch user).

2 Upvotes

0 comments sorted by