New answers tagged

0

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


2

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 https://github.com/donapieppo/libnss-ato ) and check with the authentication lib to see which local user accounts to map to (e.g. : "ftp_restricted_user" or "...


1

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