I just set up my first centos 7 server. I’m using pam and netgroups to allow only a certain number of people to log into the server.
My problem is with getent. When I issue the getent passwd, I am getting a list of EVERYONE listed in the BASE (from the openldap/ldap.conf file).
I thought that getent would only return the people listed in the netgroup. I do NOT want everyone in this list to be able to log in to my server.
What’s even stranger: If I remove the netgroup from /etc/passwd and do a getent passwd, I still get the same list of people.
I have nlscd, pam ldap and openldap installed. I’m using nssswtich.conf as follows:
passwd: files ldap
group: files ldap
ethers: files
netmasks: files
networks: files dns
protocols: files
rpc: files
services: files
netgroup: files ldap
publickey: files
passwd_compat: ldap
I added my netgroup to /etc/passwd: +@zvmaio::::::
When I enter “getent netgroup zvmaio” is responds with the netgroup name, none of the entries in the netgroup.
getent problems
General support questions
Return to “CentOS 7 - General Support”
Jump to
- CentOS General Purpose
- ↳ CentOS - FAQ & Readme First
- ↳ Announcements
- ↳ CentOS Social
- ↳ User Comments
- ↳ Website Problems
- CentOS 8 / 8-Stream / 9-Stream
- ↳ 8 /8-Stream / 9-Stream - General Support
- ↳ 8 /8-Stream / 9-Stream - Hardware Support
- ↳ 8 /8-Stream / 9-Stream - Networking Support
- ↳ 8 /8-Stream / 9-Stream - Security Support
- CentOS 7
- ↳ CentOS 7 - General Support
- ↳ CentOS 7 - Software Support
- ↳ CentOS 7 - Hardware Support
- ↳ CentOS 7 - Networking Support
- ↳ CentOS 7 - Security Support
- CentOS Legacy Versions
- ↳ CentOS 5
- ↳ CentOS 5 - General Support
- ↳ CentOS 5 - Software Support
- ↳ CentOS 5 - Hardware Support
- ↳ CentOS 5 - Networking Support
- ↳ CentOS 5 - Server Support
- ↳ CentOS 5 - Security Support
- ↳ CentOS 5 - Oracle Installation and Support
- ↳ CentOS 5 - Miscellaneous Questions
- ↳ CentOS 6
- ↳ CentOS 6 - General Support
- ↳ CentOS 6 - Software Support
- ↳ CentOS 6 - Hardware Support
- ↳ CentOS 6 - Networking Support
- ↳ CentOS 6 - Security Support