-
I need to run some sudo commands in Singularity container. If I run
If I add
If I run So, can you please help me with the above three issues? Thanks a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Escalating privilege (i.e. becoming root or another user with https://docs.sylabs.io/guides/4.0/user-guide/security.html#runtime-user-privilege-model In newer Linux distributions than were available when Singularity was first developed, the Linux kernel provides features that allow you to emulate root inside a container. You can act as root in the container, without having any root privileges on the host - or against files mounted from the host. To become a 'fake root' user in the container, who can do thing as root only inside of the container, you need to run the container in Singularity's |
Beta Was this translation helpful? Give feedback.
Escalating privilege (i.e. becoming root or another user with
sudo
) inside a container is blocked by default. This is by design, and is one of the core differences with Docker that enabled Singularity to be safely used, and become popular on HPC systems -where it is vital that a user who runs a container is not able to get root access on the host.
https://docs.sylabs.io/guides/4.0/user-guide/security.html#runtime-user-privilege-model
In newer Linux distributions than were available when Singularity was first developed, the Linux kernel provides features that allow you to emulate root inside a container. You can act as root in the container, without having any root privileges on the host …