Hi Daniel,

Utilizing pam_access  with pam_slurm_adopt might be what you are looking for?
https://slurm.schedmd.com/pam_slurm_adopt.html#admin_access

Thanks,
David

On 7/8/2024 10:54 AM, Daniel L'Hommedieu via slurm-users wrote:
Hi, all.

We have a use case where we need to allow a group of users (members of an LDAP group, which I can easily add to a Linux group) to SSH to a compute node, without disabling pam_slurm_adopt.so.  Is there a way to do this?  We can add users to the sudo group, which will bypass pam_slurm_adopt.so, but we do not want to grant sudo access to these users.

Is there any way to bypass for a group of users, pam_slurm_adopt.so without removing it from /etc/pam.d/sshd, and without adding them to the sudo group?

Thanks.

Daniel