New answers tagged


It's a bit less granular but I lockout all users except root for maintenance windows on my Linux hosts. 0 17 * * * echo "System maintenance in progress" > /run/nologin 0 18 * * * rm /run/nologin


I had a similar problem. The solution I found was: create an authentication stand-alone lib use authentication lib in the pam module to create a custom NSS plugin (from this ) and check with the authentication lib to see which local user accounts to map to (e.g. : "ftp_restricted_user" or "...


Ubuntu 18.04 and higher use a more strict sandboxing config in systemd which interferes with google-authenticator. Simply edit /lib/systemd/system/openvpn@.service and remove this line: [Service] ... ProtectHome=true This is a newer feature of systemd that makes directories with 'user' content in them appear empty, for example /home, /root, and /run/user It'...

Top 50 recent answers are included