[slurm-users] Secondary Unix group id of users not being issued in interactive srun command
Rémi Palancher
remi at rackslab.io
Fri Jan 28 08:04:19 UTC 2022
Le vendredi 28 janvier 2022 à 06:56, Ratnasamy, Fritz <fritz.ratnasamy at chicagobooth.edu> a écrit :
> Hi,
>
> I have a similar issue as described on the following link (https://groups.google.com/g/slurm-users/c/6SnwFV-S_Nk)A machine had some existing local permissions. We have added it as a compute node to our cluster via Slurm. When running an srun interactive session on that server,it would seem that the LDAP groups shadow the local groups.
>
> johndoe at ecolonnelli:~ $ groups
>
> Faculty_Collab ecolonnelli_access #Those are LDAP groups
>
> johndoe at ecolonnelli:~ $ groups johndoe
>
> johndoe : Faculty_Collab projectsbrasil core rais rfb polconnfirms johndoe vpce rfb_all backup_johndoe ecolonnelli_access
The difference between the first and the second command could be the UID used for the resolution. The first command calls getgroups() syscall using the UID of the shell. The second command resolves johndoe UID through nsswitch stack then looks after the groups of this UID.
Do you have johndoe declared in both local /etc/passwd and LDAP directory with different UID?
Do `id` and `id johndoe` return the same UID?
--
Rémi Palancher
Rackslab: Open Source Solutions for HPC Operations
https://rackslab.io
More information about the slurm-users
mailing list