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.

49 questions
19
votes
2 answers

nslookup, dig, firefox ignoring /etc/hosts file entries

There is something terribly wrong with my current Debian install. Most programs like firefox, nslookup, dig etc. are ignoring entries in /etc/hosts file, actually I use this file for Ad-blocking. an example a line in /etc/hosts file 127.0.0.1…
Arnab
  • 1,541
  • 3
  • 14
  • 31
12
votes
5 answers

Resolving NETBIOS names from Linux

There's a Windows machine called SUSAN on my network. From a Windows VM on my Linux box I can simply: C:\>ping susan I've followed this guide (and looked at several other similar ones) for resolving NETBIOS names from my Linux box itself. I…
Juicy
  • 3,685
  • 11
  • 31
  • 44
10
votes
1 answer

Whta does '\+::::::/bin/bash' in /etc/passwd mean?

Found the line \+::::::/bin/bash in my /etc/passwd, which looks strange to me. What does that mean? Has my computer been hacked?
Funkwecker
  • 203
  • 2
  • 6
8
votes
1 answer

How to use same library more than once in Name Service Switch (NSS)

Is there any generic solution to use a single NSS library two (or more) times? In my case I have two LDAP servers, one local on the machine itself and one remote. I need to make NSS work with both of them (it uses the remote one if local doesn't…
Adam Badura
  • 313
  • 1
  • 2
  • 7
8
votes
2 answers

read files directly VS getent

In various shell scripts I often see two approaches for getting information from databases supported by Name Service Switch libraries like /etc/group, /etc/hosts or /etc/services. One is getent utility and other is grep or some other text processing…
Martin
  • 7,284
  • 40
  • 125
  • 208
7
votes
2 answers

What is the purpose of extrausers?

Can someone explain the purpose, and benefits, of having an additional and separate extrausers user database in certain Linux systems (such as in Debian or in Ubuntu Core)? Why is not the standard /etc/{group,passwd,shadow} enough?
Ess
  • 71
  • 3
6
votes
4 answers

To which Debian package does /etc/nsswitch.conf belong?

I tried to find out to which package /etc/nsswitch.conf belongs on my Debian machine, but dpkg --search /etc/nsswitch.conf won't tell me. Does anyone know?
JohnnyFromBF
  • 3,476
  • 10
  • 32
  • 42
4
votes
0 answers

Linux Authentication Flow (NSS -> PAM -> AD)

I am a new system administrator at an organization looking to understand the process flow of authentication in regards to how NSS, PAM and WINBIND work together. We've been having winbind related problems, and I'd like to try and improve our…
3
votes
2 answers

Why does getent default to .station if no TLD is specified?

With my current setup, I have a dnsmasq instance operating on my home server (Void Linux) and 3 GNU/Linux devices that use it as default dns (1 Manjaro, 1 Arch, 1 Linux Mint 20.1). Due to seemingly unrelated issues, I was testing the mdns name…
Mek101
  • 43
  • 4
3
votes
0 answers

What is the publickey for in nsswitch.conf

As I understand it the getent tool is used to query the Name Service Switch. In the getent man file all the different entries (plus a few more) from nsswitch.conf is listed, except the publickey one. And indeed, if I try getent publickey foo I the…
lash
  • 729
  • 3
  • 8
  • 15
3
votes
1 answer

Determine which name service created entry in database (eg passwd)?

On Linux and Unix-like systems the Name Service Switch is used to gather entries for the systems name databases. There are databases such as files, dns, nis and ldap. Is it possible to determine for a given user which service was used to add that…
jdwolf
  • 4,887
  • 1
  • 13
  • 28
3
votes
1 answer

Creating Unix local groups for AD users

I am implementing LDAP authentication against Samba 4 AD for admins login to our Linux servers. I successfully configured PAM with libpam-ldapd and libnss_ldapd with auto creation of the home directories of the users. I am facing now the problem…
Max
  • 315
  • 4
  • 19
3
votes
0 answers

getent hosts not using DNS

I'm using Ubuntu workstation (14.04), using OpenLDAP for authentication. The /etc/nsswitch.conf files on these look like this so that to get a host it should try files, then LDAP and then go on to check DNS: passwd: files ldap group: …
TerryS
  • 31
  • 1
3
votes
0 answers

How to add all netgroup members to a group

I have multiple virtualized servers, all configured to use LDAP for their passwd/shadow (in nsswitch.conf) and authentication (PAM). I would like to have an easily configurable set of users who will be able to read logs on any of the servers. This…
Wolf480pl
  • 163
  • 1
  • 7
3
votes
1 answer

Get sudoers through LDAP (SUSE Linux Enterprise Server 12)

I have a problem with my LDAP configuration on SUSE Linux Enterprise Server 12. As many of you know, the ldap.conf file has been replaced with sssd.conf and a couple of other conf files like nsswitch.conf. I want to have authentication through LDAP,…
Meerkat
  • 211
  • 1
  • 10
1
2 3 4