Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
linyows committed Oct 22, 2018
1 parent 4fa7007 commit 4e4f904
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e4f904

Please sign in to comment.