Skip to main content

Questions tagged [nsswitch]

Name Service Switch, an modular interface built in to the GNU C library that handles data retrieval from system databases, e.g., password, group, etc.

1 vote
0 answers
30 views

identical NSS config resolves differently on two computers

One of my computers won't resolve a domain that the local gateway resolves with a CNAME. The nsswitch config is identical on both machines. I just can't work out what the cause is. computer A (works): ...
Banyoghurt's user avatar
0 votes
2 answers
96 views

Any real use cases that we are NOT prioritise Local Files Over DNS in `nsswitch.conf` [closed]

Background Recently, I learned that there is a name Service Switch configuration file - nsswitch.conf in some Unix-like operating systems. We can change the domain name resolution order using nsswitch....
Continuous Improvement's user avatar
15 votes
2 answers
5k views

Why am I known as a user?

I inherited a Linux server; the previous administrator is no longer with our company. I can log in to the server via SSH with my company-wide Microsoft Directory administration user, and it works ...
Matthias Ronge's user avatar
0 votes
0 answers
93 views

NetworkManager and /etc/nsswitch.conf

I'm looking to use SSSD to connect to Wifi WPA2 Enterprise (on Ubuntu 22.04). Can nmcli (NetworkManager) use /etc/nsswitch.conf to authenticate to Wifi without user action for on-site mode ? Thanks ...
kto's user avatar
  • 1
1 vote
0 answers
48 views

Simple user database / LDAP lookup options for containers

In my environment we launch containers with a specific uid/gid that our users use as workspaces. It's a bit finicky and one of the drawbacks is that there won't be a matching user in /etc/passwd, ...
vadimb's user avatar
  • 11
1 vote
2 answers
798 views

Fedora 38: need persistent changes in nsswitch.conf

I've got Fedora 38 KDE Spin. To access corporate VPN resources in .local zone I need to make queries to the DNS server after establishing connection. Default nsswitch.conf hosts section looks like ...
PocketSam's user avatar
  • 113
7 votes
1 answer
52k views

How do I permanently configure the DNS resolution in Ubuntu for ALL programs/layers for specific interfaces

Is there a way I can permanently set the DNS preference of my Ubuntu laptop for specific network interfaces? I am relying on a wifi network that is not that predictable. I don't have access to the ...
TPPZ's user avatar
  • 647
0 votes
2 answers
713 views

Difference between *LK* in /etc/shadow and /usr/sbin/nologon in /etc/passwd

What is the practical difference between setting *LK* in /etc/shadow and setting /usr/sbin/nologon in /etc/passwd? When would we choose one over the other? When would we combine them?
Lyubomir's user avatar
  • 113
3 votes
1 answer
2k views

Difference between nsswitch, nslcd and sssd?

I'm trying to configure sssd instead of nslcd for my Rhel system, and then I came across nsswitch. What's the difference between these three?
N. J's user avatar
  • 197
1 vote
1 answer
6k views

'getent passwd' not showing LDAP users, athough users can log in

I have an administration node running LDAP and a login node which uses LDAP on the other node to authorize users. Users are able to log into the login node successfully. When I run getent passwd, on ...
loris's user avatar
  • 195
0 votes
1 answer
751 views

Can't ping server that resolves using avahi-resolve

I have a server I've discovered from a Manjaro client using avahi named unaha-closp. However, when I ping it I get: ping: unaha-closp.local: Name or service not known In /etc/nsswitch.conf my hosts ...
Nate's user avatar
  • 154
2 votes
2 answers
2k views

avahi-resolve works but mdns

I have an updated Debian 11 (bullseye) setup and want to use avahi to connect to locally connected computers. avahi works, for example: avahi-resolve -n4 prag11mono.local gives prag11mono.local 10.0....
user855443's user avatar
0 votes
1 answer
89 views

When was NSS (Name Service Switch) introduced in Solaris?

I was not able to find a date or a Solaris release number... Also, beside Ultrix's svc.conf system (mentionned in NSS's Wikipedia article), did other comparable systems exist in other Unices, before ...
Eusebius's user avatar
  • 184
1 vote
0 answers
281 views

How to configure /etc/pam.d/sshd and nsswitch.conf in order to avoid all remote calls for ssh with local user?

I have created an NSS and a PAM module in order to authenticate and get users and groups from a custom remote server. In order to get them used by the system I am adding a line in /etc/pam.d/sshd: ...
sotiris's user avatar
  • 111
1 vote
0 answers
531 views

Fully replace sssd->ldap with web APIs in Linux

My organization has to get rid of their ldap servers, so I am facing the task of replacing it's functionality. To make this as customizable and future-proof as I can, I am looking for something that ...
Redjard's user avatar
  • 11

15 30 50 per page