Skip to content

Commit b7f0bdd

Browse files
committed
Add docs
Signed-off-by: Martin Schurz <Martin.Schurz@telekom.de>
1 parent e13bb0f commit b7f0bdd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

roles/os_hardening/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@ We are setting this sysctl to a default of `32`, some systems only support small
9494
vm.mmap_rnd_bits: 16
9595
```
9696

97+
### password expiry and SSH key based logins
98+
99+
With default PAM configuration setting a password expiry for users will also block SSH key logins after the password has expired.
100+
We have added a flag for PAM to ignore the expiry if SSH keys or other login mechanisms are used.
101+
If you choose to use your own PAM configuration please adjust it accordingly to contain `no_pass_expiry` in the `account` stage for the `pam_unix.so` module.
102+
103+
A valid example would look like this:
104+
105+
```text
106+
account required pam_unix.so no_pass_expiry
107+
```
108+
97109
## Testing with inspec
98110

99111
If you're using inspec to test your machines after applying this role, please make sure to add the connecting user to the `os_ignore_users`-variable.

0 commit comments

Comments
 (0)