New answers tagged pam
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
Related Tags
pam × 701linux × 190
ldap × 158
ssh × 138
authentication × 116
ubuntu × 68
centos × 62
active-directory × 43
kerberos × 41
openldap × 40
debian × 39
security × 38
sssd × 35
redhat × 33
pam-ldap × 27
google-authenticator × 25
samba × 24
login × 24
ftp × 23
centos7 × 22
vsftpd × 22
nss × 22
mysql × 19
password × 18
postfix × 17