Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3742435
D975.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.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
Fri, Nov 15, 06:32 (12 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2246157
Default Alt Text
D975.diff (993 B)
Attached To
Mode
D975: Disable pam_nologin for SSH connections
Attached
Detach File
Event Timeline
Log In to Comment