Page MenuHomeDevCentral

Disable pam_nologin for SSH connections
ClosedPublic

Authored by dereckson on Apr 28 2017, 09:42.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Mar 9, 10:43
Unknown Object (File)
Sat, Mar 7, 15:20
Unknown Object (File)
Sat, Feb 28, 08:29
Unknown Object (File)
Fri, Feb 27, 12:22
Unknown Object (File)
Fri, Feb 27, 12:16
Unknown Object (File)
Thu, Feb 26, 22:09
Unknown Object (File)
Wed, Feb 25, 17:18
Unknown Object (File)
Tue, Feb 24, 18:15
Subscribers
None

Details

Summary

systemd likes to touch /run/nologin to prevent SSH connections
while not fully initialized, a behavior frowned upon as there
isn't any warranty the file will be removed on system failure.

Furthermore, restrict non root login isn't a solution on servers
where root access isn't possible through SSH.

Fixes T1194.

Test Plan

Running the state on Eglide, output was well the expected diff:

-account    required     pam_nologin.so                                                                                        
+#account    required     pam_nologin.so

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
T1194 (branched from master)
Build Status
Buildable 1520
Build 1768: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Apr 28 2017, 21:12
This revision was automatically updated to reflect the committed changes.