Files
File | Function |
---|---|
/etc/pam.d/system-auth |
|
/etc/pam.d/password-auth |
Faillock
Unsuccessful login attempts.
Check
Unlock user
Examples
Limit access to su
su
only allowed to wheel
group.
/etc/pam.d/su
---
auth [success=2 default=ignore] pam_succeed_if.so use_uid user notingroup wheel
auth required pam_wheel.so use_uid group=wheel
auth required pam_listfile.so item=user sense=allow onerr=fail file=/etc/security/su-wheel-access
File that holds allowed users to move to
Disallow usage of system at certain hours
login
tty* & !ttyp*
!root
Except "root"!Al0800-2200
man time.conf
password history
/etc/pam.d/password-auth & /etc/pam.d/system-auth
---
password sufficient pam_unix.so [...] remember=14
Configure password retries before error
Show failed access
Inmutable bit just in case
Security limits
man limits.conf
Check limits with ulimit -a