[slurm-users] User id inconsistency
Brian Andrus
toomuchit at gmail.com
Mon Apr 19 14:37:19 UTC 2021
Just running 'id' provides info for the current user in the working
environment. Here, you are in a bash shell started by slurmd which is
running as root.
Running 'id <user>' returns the default settings for the user.
Try doing things like 'chgrp' then then run 'id' and you will see the
changes caused by that.
Brian Andrus
On 4/19/2021 4:41 AM, Bruno Gomes Pessanha wrote:
> That is showing that I'm in different groups depending on how I run
> the command id.
>
> PS: I'm running the controller and workers in docker containers using
> privileged mode.
>
> Bruno
>
> On Mon, 19 Apr 2021 at 13:24, Dustin Lang <dstndstn at gmail.com
> <mailto:dstndstn at gmail.com>> wrote:
>
> This is telling you you're root in the docker container, right?
>
>
>
> On Mon, Apr 19, 2021 at 4:51 AM Bruno Gomes Pessanha
> <bruno.pessanha at gmail.com <mailto:bruno.pessanha at gmail.com>> wrote:
>
> Somebody could help me with this?
> Pretty strange behaviour. If I run "id: it shows different
> groups if I run "id myuser":
>
> [root at ctrl-slurm /]# srun --pty -p local --uid myuser bash
>
> [myuser at node-slurm /]$ id
> uid=868295925(myuser) gid=0(root) groups=0(root),979(cgred)
>
> [myuser at node-slurm /]$ id myuser
> uid=868295925(myuser) gid=1001(myuser)
> groups=1001(myuser),978(docker)
>
> --
> Bruno
>
>
>
> --
> Bruno Gomes Pessanha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20210419/7fd103b7/attachment.htm>
More information about the slurm-users
mailing list