Check out the proposed --fakeroot feature
https://github.com/sylabs/singularity/pull/2718
I think it has potential for allowing unprivileged users to have sudo
inside a container, but it's not fully implemented yet and will at a
minimum have some caveats.
Dave
On Sat, Mar 23, 2019 at 09:48:52AM -0700, v wrote:
> To have sudo inside the container, the user needs to be sudo outside the
> container, and yes to run with sudo privileges
>
> The only way I can use these is to run the respective singularity command
> > with *sudo*, but I do not want to give them sudo permissions
>
>
> So this is sort of a contradiction - something along the lines of having
> cake and eating it too :_) Do you trust your users to do this? And what is
> your setup? If you want them to easily develop containers with write, you
> might consider having them build/develop with Docker locally, and then pull
> the read only versions onto the cluster.
>
> On Sat, Mar 23, 2019 at 9:09 AM Matú?? Pikuliak <
matusp...@gmail.com>
> wrote:
>
> > Hey, I have a question about the user privileges in singularity
> > containers. My use-case is to use singularity basically as VMs and I would
> > like for each user to have complete control over his VM instances. When
> > someone builds a Ubuntu container I would like for him to have sudo
> > privileges within this container. E.g. when the user runs his container, he
> > can use *apt install* or *apt remove. *The only way I can use these is to
> > run the respective singularity command with *sudo*, but I do not want to