Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3923346
D975.id2508.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
993 B
Referenced Files
None
Subscribers
None
D975.id2508.diff
View Options
diff --git a/roles/core/sshd/init.sls b/roles/core/sshd/init.sls
--- a/roles/core/sshd/init.sls
+++ b/roles/core/sshd/init.sls
@@ -6,6 +6,25 @@
# License: Trivial work, not eligible to copyright
# -------------------------------------------------------------
+# -------------------------------------------------------------
+# OpenSSH
+# -------------------------------------------------------------
+
/etc/ssh/sshd_config:
file.managed:
- source: salt://roles/core/sshd/files/sshd_config
+
+# -------------------------------------------------------------
+# PAM
+# -------------------------------------------------------------
+
+# T1194 - Debian offers a nologin pam module avoiding people
+# to log in when /run/nologin exists. OS can pop this file,
+# for example at shutdown time or when systemd boot hasn't
+# finished.
+
+pam_disable_nologin:
+ file.comment:
+ - name: /etc/pam.d/sshd
+ - regex: ^account.*pam_nologin\.so
+ - backup: None
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 22, 07:21 (16 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2310150
Default Alt Text
D975.id2508.diff (993 B)
Attached To
Mode
D975: Disable pam_nologin for SSH connections
Attached
Detach File
Event Timeline
Log In to Comment