Skip to content
Snippets Groups Projects
Commit eb500297 authored by Swe Aung's avatar Swe Aung
Browse files

Allow ec2-user to pamd ssh allow user list. This will enable ec2-user to be...

Allow ec2-user to pamd ssh allow user list. This will enable ec2-user to be able to login to the sytems even without slurmd process is started
parent 23cecd24
No related branches found
No related tags found
1 merge request!593Allow ec2-user to pamd ssh allow user list. This will enable ec2-user to be...
---
- name: "Copy pam_allow_users_list file"
template: src=pam_allow_users_list.j2 dest=/root/pam_allow_users_list
become: true
become_user: root
- name: "Copy access.conf"
template: src=access.conf.j2 dest=/etc/security/access.conf
become: true
......
......@@ -6,6 +6,7 @@ auth include postlogin
-auth optional pam_reauthorize.so prepare
account required pam_nologin.so
account include password-auth
account sufficient pam_listfile.so item=user sense=allow onerr=fail file=/root/pam_allow_users_list
account sufficient pam_slurm_adopt.so
account required pam_access.so
password include password-auth
......
......@@ -6,6 +6,7 @@ auth include postlogin
-auth optional pam_reauthorize.so prepare
account required pam_nologin.so
account include password-auth
account sufficient pam_listfile.so item=user sense=allow onerr=fail file=/root/pam_allow_users_list
account sufficient pam_slurm_adopt.so
account required pam_access.so
password include password-auth
......
infra-user
ec2-user
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment