-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Breaking] Drop support for PAM related config.
The code for handling PAM stuff was not very robust. Since a small misconfiguration can lock the user out of their system, I've decided to drop support for PAM related configuration, other than disabling core dumps.
- Loading branch information
Showing
8 changed files
with
5 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,7 @@ | ||
# PAM and limits configuration | ||
|
||
**NOTE:** Messing with PAM can be dangerous. Please, at least make sure you have a root shell open before running the role. | ||
|
||
```yaml | ||
security_enforce_strong_passwords: true | ||
security_lock_after_failed_logins: true | ||
security_lock_after_num_of_failed_logins: 4 | ||
``` | ||
> - Enforce users to use strong passwords (at least 12 characters, with digits, lowercase, uppercase and symbols). | ||
> - Lock user accounts after number of consecutive failed login attempts. | ||
> - How many consecutive login attempts are allowed. | ||
# Set up limits using PAM | ||
|
||
```yaml | ||
security_disable_core_dumps: true | ||
``` | ||
> Whether to disable core dumps or not. | ||
```yaml | ||
security_nproc_limit: true | ||
security_nproc_limit_value: "2048" | ||
``` | ||
> - Set a nproc limit to help against fork-bombs. | ||
> - The value of the nproc limit. _This does NOT affect the root user!_ | ||
> | ||
> **Please note that having a very low limit can make your system unusable!** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.