edit 2 Addendum
OK, big thanks to @oakcroissant@feddit.org for bringing this to attention here: https://europe.pub/post/390395/686949
that gets to the root (har har) of my confusion here. am i missing the point of MicroOS, or is it the devs who are wrong? 😆
their INTENTION with MicroOS is for us to just use root, which is contrary to how i've lived Linux basically forever.
Podmans rootless containers are AWESOME on Aeon, where you’re using it interactively and already have none root users.. but that would just be adding unnecessary complications to MicroOS
MicroOS is designed to use with root, and there is no need to create a non root user for anything.
IF there was a need to create a non root user then the installer would create a non-root user
which is exactly what was tripping me up. why weren't they facilitating rootless activity, and thus making me jump through hoops to get there.
answer: because it's not needed, and not the intention.
MicroOS: run as root.
edit Answer
yes, MicroOS only generates a root user at install.
if you want to do rootless containers, you will need to create new, non-root users after.
useradd will NOT generate entries for subuid/subgid by default for the new SYSTEM users.
if the system user already exists, you will need to add them manually:
usermod --add-subuids 100000-165535 <yourusername>
usermod --add-subgids 100000-165535 <yourusername>
otherwise, you must use the -F flag with useradd to generate subids for new system users.
thanks all!
hey all! i need a little help here.
i'm just starting to get into self-hosting, and have chosen MicroOS and podman as my environment and tool.
would someone be able to clarify something for me?
I have a MicroOS install for containers, and it seems to only come with a root user. so if i use podman, won't all my pods be rootful?
i try to make a new non-root user, but podman just keeps complaining about privileges when i run it under that user.
so how is this intended to work exactly?
thanks for any help!
While this would not answer your question, but according to podman maintainers, rootful podman with
userns=auto
enjoys nearly as much security benefits as rootless. (As always, there are nuances to this)Check out https://github.com/containers/podman/discussions/13728
Maybe you could consider running rootful podman, especially if the OS is immutable.
thanks, very helpful! your comment is definitely relevant, and i hope this topic will help others in the future who may be confused about best practice w/ MicroOS.
for what it's worth, i did end up running Rootful!