From 4e4f904168dd29078d663c1bac2306d61eda90d8 Mon Sep 17 00:00:00 2001 From: linyows Date: Mon, 22 Oct 2018 22:14:44 +0900 Subject: [PATCH] update README --- README.md | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/README.md b/README.md index 216e41e..3da73c3 100644 --- a/README.md +++ b/README.md @@ -149,31 +149,12 @@ PasswordAuthentication no ### PAM Configuration -#### Ubuntu - -/etc/pam.d/sshd: - -```conf -#@include common-auth -auth requisite pam_exec.so quiet expose_authtok /usr/bin/octopass pam -auth optional pam_unix.so not_set_pass use_first_pass nodelay -session required pam_mkhomedir.so skel=/etc/skel/ umask=0022 -``` - -#### CentOS - -/etc/pam.d/system-auth-ac: - -```conf -# auth sufficient pam_unix.so nullok try_first_pass -auth requisite pam_exec.so quiet expose_authtok /usr/bin/octopass pam -auth optional pam_unix.so not_set_pass use_first_pass nodelay -``` - -/etc/pam.d/sshd: +Add to top of `/etc/pam.d/sshd` this: ```conf -session required pam_mkhomedir.so skel=/etc/skel/ umask=0022 +auth requisite pam_exec.so quiet expose_authtok /usr/bin/octopass pam +auth optional pam_unix.so not_set_pass use_first_pass nodelay +session required pam_mkhomedir.so skel=/etc/skel/ umask=0022 ``` ### NSS Switch Configuration