Page MenuHomeDevCentral

Disable pam_nologin for SSH connections
ClosedPublic

Authored by dereckson on Apr 28 2017, 09:42.
Tags
None
Referenced Files
F10426948: D975.id.diff
Mon, Jul 7, 07:24
Unknown Object (File)
Sun, Jul 6, 04:32
Unknown Object (File)
Sun, Jul 6, 02:36
Unknown Object (File)
Fri, Jul 4, 08:34
Unknown Object (File)
Wed, Jun 25, 05:04
Unknown Object (File)
Tue, Jun 24, 05:57
Unknown Object (File)
Wed, Jun 18, 08:04
Unknown Object (File)
Wed, Jun 18, 08:01
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 Not Applicable
Unit
Tests Not Applicable

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.