Restrict access to group(s)?

General support questions
Post Reply
jnojr
Posts: 133
Joined: 2007/11/29 23:42:03
Location: San Diego, CA
Contact:

Restrict access to group(s)?

Post by jnojr » 2017/08/03 16:33:21

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.

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Restrict access to group(s)?

Post by gerald_clark » 2017/08/03 23:24:32

Disable login for the users that don't belong to the group.

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Restrict access to group(s)?

Post by hunter86_bg » 2017/08/04 18:56:34

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.

Post Reply