I want to only allow members of certain group(s) to be able to log in.
Googling has led me to results about PAM entries, SSSD entries, /etc/security/access.conf... but nothing works for the console. No matter what I do, I can always log in with any user.
Restrict access to group(s)?
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: Restrict access to group(s)?
Disable login for the users that don't belong to the group.
-
- Posts: 2019
- Joined: 2015/02/17 15:14:33
- Location: Bulgaria
- Contact:
Re: Restrict access to group(s)?
Are all users logging in remotely (ssh) or there are still users logging in via the console ?
If it's ssh - there are several directives that can restrict which users can login (including the root user).If it's local access - then you have to do the pam tweaking.
If it's ssh - there are several directives that can restrict which users can login (including the root user).If it's local access - then you have to do the pam tweaking.