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 <dstnd...@gmail.com
<mailto:dstnd...@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.pessa...@gmail.com <mailto:bruno.pessa...@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@ctrl-slurm /]# srun --pty -p local --uid myuser bash
[myuser@node-slurm /]$ id
uid=868295925(myuser) gid=0(root) groups=0(root),979(cgred)
[myuser@node-slurm /]$ id myuser
uid=868295925(myuser) gid=1001(myuser)
groups=1001(myuser),978(docker)
--
Bruno
--
Bruno Gomes Pessanha