-
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.
Merge pull request #372 from mariux64/install-pam.d
(some) pam.d cleanup
- Loading branch information
Showing
17 changed files
with
148 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# | ||
# The PAM configuration file for the cron daemon | ||
auth sufficient pam_rootok.so | ||
# | ||
# deny cron-access to users listed in the /etc/cron.deny file | ||
# | ||
auth required pam_unix.so quiet | ||
account required pam_listfile.so onerr=succeed item=user sense=deny file=/etc/cron.deny | ||
account required pam_unix.so | ||
session required pam_unix.so |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
auth required pam_unix.so shadow nodelay | ||
account required pam_unix.so |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
auth required pam_unix.so | ||
account required pam_unix.so |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
auth requisite pam_nologin.so | ||
auth required pam_securetty.so | ||
auth required pam_env.so | ||
auth required pam_unix.so | ||
|
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#%PAM-1.0 | ||
|
||
# Block login if they are globally disabled | ||
auth required pam_nologin.so | ||
|
||
# Load environment from /etc/environment and ~/.pam_environment | ||
auth required pam_env.so | ||
|
||
# Use /etc/passwd and /etc/shadow for passwords | ||
auth required pam_unix.so | ||
|
||
# Check account is active, change password if required | ||
account required pam_unix.so | ||
|
||
# Allow password to be changed | ||
password required pam_unix.so | ||
|
||
# Setup session | ||
session required pam_unix.so | ||
session optional pam_systemd.so |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#%PAM-1.0 | ||
|
||
# Load environment from /etc/environment and ~/.pam_environment | ||
auth required pam_env.so | ||
|
||
# Always let the greeter start without authentication | ||
auth required pam_permit.so | ||
|
||
# No action required for account management | ||
account required pam_permit.so | ||
|
||
# Can't change password | ||
password required pam_deny.so | ||
|
||
# Setup session | ||
session required pam_unix.so | ||
session optional pam_systemd.so |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
auth requisite pam_nologin.so | ||
auth required pam_securetty.so | ||
auth required pam_env.so | ||
auth required pam_unix.so | ||
auth required pam_shells.so | ||
|
||
account required pam_access.so | ||
account required pam_unix.so | ||
session required pam_motd.so | ||
session required pam_limits.so | ||
#session optional pam_mail.so dir=/var/mail standard | ||
session optional pam_lastlog.so | ||
session required pam_unix.so | ||
password required pam_unix.so md5 shadow | ||
session required pam_loginuid.so |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Begin /etc/pam.d/other | ||
|
||
auth required pam_deny.so | ||
auth required pam_warn.so | ||
account required pam_deny.so | ||
account required pam_warn.so | ||
password required pam_deny.so | ||
password required pam_warn.so | ||
session required pam_deny.so | ||
session required pam_warn.so | ||
|
||
# End /etc/pam.d/other |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Begin /etc/pam.d/passwd | ||
|
||
password required pam_unix.so md5 shadow | ||
|
||
# End /etc/pam.d/passwd |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
auth required pam_unix.so | ||
account required pam_unix.so |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
auth required pam_unix.so | ||
account required pam_unix.so |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
auth required pam_unix.so | ||
account required pam_unix.so |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
auth requisite pam_nologin.so | ||
#auth required pam_securetty.so | ||
auth required pam_env.so | ||
auth required pam_unix.so | ||
auth required pam_google_authenticator.so nullok no_increment_hotp | ||
auth required pam_shells.so | ||
account required pam_access.so | ||
account required pam_unix.so | ||
#session required pam_motd.so | ||
session required pam_limits.so | ||
#session optional pam_mail.so dir=/var/mail standard | ||
#session optional pam_lastlog.so | ||
session required pam_unix.so | ||
password required pam_unix.so md5 shadow | ||
session required pam_loginuid.so | ||
session optional pam_systemd.so |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
auth sufficient pam_rootok.so | ||
auth required pam_unix.so | ||
auth required pam_shells.so | ||
account required pam_unix.so | ||
#session optional pam_mail.so dir=/var/mail standard | ||
session optional pam_xauth.so | ||
session required pam_limits.so | ||
session required pam_env.so | ||
session required pam_unix.so |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
auth sufficient pam_rootok.so | ||
auth required pam_unix.so | ||
auth required pam_shells.so | ||
account required pam_unix.so | ||
session optional pam_mail.so dir=/var/mail standard | ||
session required pam_unix.so | ||
|
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
auth required pam_nologin.so | ||
auth required pam_shells.so | ||
auth required pam_securetty.so | ||
auth required pam_env.so | ||
auth required pam_unix.so | ||
|
||
account required pam_access.so | ||
account required pam_unix.so | ||
|
||
password required pam_unix.so md5 shadow | ||
|
||
session required pam_unix.so | ||
session required pam_limits.so | ||
|
||
session required pam_loginuid.so | ||
session optional pam_systemd.so |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
auth requisite pam_nologin.so | ||
auth required pam_securetty.so | ||
auth required pam_env.so | ||
auth required pam_shells.so | ||
auth required pam_unix.so | ||
|