Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nsswitch]

The tag has no usage guidance.

0
votes
0answers
14 views

Should I run a boot script on nsswitch.conf? (Debian 9)

I have a Debian 9 box that's joined to a Windows AD domain. The main domain controller runs in a VM on this Debian box alongside another physical backup DC. As it stands the backup DC is out of ...
6
votes
1answer
151 views

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 /...
0
votes
1answer
294 views

How nsswitch call sssd for credential?

I'm stuck with Kerberos - sssd - AD. I've tried a lot of things, with lot of googling, in LinuxMint, Ubuntu 16.04 and Debian 9. I have always the same result : kinit username works fine msktutil -u --...
0
votes
3answers
909 views

find user name through full name / gecos field?

Given a system where the user data comes from e.g. an OpenLDAP database and is not in the /etc/passwd file. Is it possible to search through the getent passwd database and look up the user id/name by ...
1
vote
0answers
37 views

Resolve a hostname and know where the answer came from?

As part of auditing a RANCID server, I would like to be able to figure out whether it's resolving a particular hostname via /etc/hosts, DNS or some other source. Is there a generic (without me ...
3
votes
1answer
190 views

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 ...
3
votes
1answer
340 views

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 ...
1
vote
1answer
412 views

How to update nsswitch to use the second DNS server too if there is an NXDOMAIN?

The resolv.conf looks like this: machine:~ # cat /etc/resolv.conf search foo.bar nameserver DNSSERVERIP1 nameserver DNSSERVERIP2 machine:~ # The first DNSSERVERIP1 doesn't know about the ...
1
vote
0answers
373 views

Linux bonding failover issue between two cisco switch

I have above scenario where server has bond0 interface connected to SW1 and SW2 relevant interface of server, last night somehow SW1 got rebooted and server lost eth0 connectivity but it didn't ...
1
vote
1answer
125 views

winbind using wrong netbios service code in queries

For the past day, I have been trying unsuccessfully to let my Ubuntu VM be able to resolve NetBIOS names on the local network, to find some non-computer devices (Printers, special barcode machines, ...
3
votes
0answers
459 views

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 ...
2
votes
0answers
738 views

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 ...
0
votes
1answer
20 views

Where to get information on built-in NSS services?

Where can I get detailed information (including file format, database format) on built-in NSS services such as db, files?
2
votes
1answer
701 views

Login not chdir()ing to correct home directory (AD/realmd/sssd)

I'm forced (ugh) to join several linux machines to a domain. I'm currently using debian stable, and am joining the machines using a join script I wrote (at https://rbmj.github.io/join.sh for ...
2
votes
1answer
900 views

Wins nss host name resolution not working

I'm trying to get wins name resolution working. I thought I understood the required step, but I can't get it to work. The box is running SLES 12 SP1. This is what I've done: Added a wins server to /...
0
votes
0answers
414 views

Doesn't these program respect nsswitch?

I've set up LDAP and nsswitch on ubuntu and to some extent it seem to work. For example getent passwd lists accounts from both /etc/passwd and LDAP server. However for example id <user>, sudo -...
8
votes
2answers
9k views

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 ...
8
votes
1answer
267 views

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 ...
5
votes
2answers
854 views

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 ...
9
votes
4answers
22k views

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 ...
1
vote
0answers
3k views

LDAP: Local and remote user with same username

I have configured an openLDAP server with LDAP user and group ids beginning at 10000. My client successfully binds to the LDAP server via ldapsearch. Additionally, getent passwd|group returns a full ...
2
votes
0answers
549 views

Editing nsswitch.conf to check for files other than /etc/passwd while searching local files for user details

I have a file in /etc named radius which contains the user account details similar to /etc/passwd but of Radius users. How do I configure /etc/nsswitch.conf to check /etc/radius in addition to ...
2
votes
1answer
1k views

can't find my user name in /etc/passwd nor name of my initial group in /etc/group

Here is what i get: [zehu@danville ~]$ groups apl vboxusers [zehu@danville ~]$ [zehu@danville ~]$ grep zehu /etc/passwd [zehu@danville ~]$ [zehu@danville ~]$ grep apl /etc/group [zehu@danville ~]...
2
votes
1answer
272 views

Domain name resolution tool not specific to DNS [duplicate]

host, dig and nslookup can be used to lookup DNS names from the command line. However, they query the names from the DNS server directly, instead of using nsswitch to resolve host names. This means /...
2
votes
1answer
324 views

How to disconnect a server from LDAP

I have a Fedora server configured for LDAP. However, the LDAP server is gone, and now I'm unable to SSH into it. I've rebooted the server into single-user mode, brought up eth0 and started sshd, but ...
2
votes
2answers
3k views

Editing nsswitch.conf file safely

What's the best way to edit the /etc/nsswitch.conf file other than just using sed -i to edit it in place or overwrite it in total. For our build we need to make changes to this file without ...
5
votes
4answers
2k views

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?
1
vote
0answers
514 views

How is a username determined and can I hide the domain component in a winbind username?

Someone asked a question on Server Fault about a problem which I'm also having but no one has answered it so I'm posing a slightly different question to try and figure it out myself. I've configured ...
7
votes
1answer
4k views

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?
1
vote
2answers
13k views

getent passwd when nsswitch passwd setting is: files ldap

If /etc/nsswitch.conf has: passwd: files ldap this line in it, and I do getent passwd will it first run down the /etc/passwd list and then go through every user in LDAP? That seems to be what's ...