minus-squareNRoach44@lemmy.mltoSelfhosted@lemmy.world•Does running applications inside a container as an unprivileged user have any security benefits?linkfedilinkEnglisharrow-up5arrow-down1·edit-21 year agoIt means that if someone breaks out of your container, they can only do things that user can do. Can that user access your private documents (are these documents in a container that also runs under that user)? Can that user sudo? Can that user access SSH keys and jump to other computers? Generally speaking, the answer to all of these should be “no”, meaning that each group of containers (or risk levels etc) get their own account. linkfedilink
It means that if someone breaks out of your container, they can only do things that user can do.
Can that user access your private documents (are these documents in a container that also runs under that user)?
Can that user sudo?
Can that user access SSH keys and jump to other computers?
Generally speaking, the answer to all of these should be “no”, meaning that each group of containers (or risk levels etc) get their own account.