HP-UX: On using Name Service Switch

18 October 2007

The HP-UX system (like many others) uses something called the Name Service Switch (NSS) which basically means that any program requiring “names” for things (such as users, systems, networks, services) goes through a sort of “Grand Central Station” which correlates the different possible services (such as DNS, NIS, files) with the names. It is actually quite nice; the service is best described through the man page for nsswitch.conf(4) - the configuration file is found in /etc.

However, the configuration for the name services needs to be propogated out to the various daemons that are running. Typically, NSS involves libraries such as nss_named, nss_ldap, and so forth. When changing the configuration in nsswitch.conf file, using the daemon’s builtin “reread configuration file” will not be enough. The NSS libraries will already have been loaded, and may even be now configured wrong (since the configuration file changed). Restarting the daemon from scratch will reload all of the appropriate libraries for the proper configuration.

I ran into this when trying to properly configure inetd for ServiceGuard (did you know that identd is required for proper ServiceGuard operation?). inetd -c did not reconfigure the server (though it might seem at first glance that it must). Restarting the server cleaned things up smartly.

Entry Filed under: HPUX. Tags: , , , , .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


David Douthitt

David is an experienced UNIX and Linux system administrator, a former Linux distribution maintainer, and author of two books ("Advanced Topics in System Administration" and "GNU Screen: A Comprehensive Manual"). View David Douthitt's profile on LinkedIn

Recent Posts

Top Posts

RSS Sharky's Column!

Calendar

October 2007
M T W T F S S
« Sep   Nov »
1234567
891011121314
15161718192021
22232425262728
293031  

Recent Comments

bharat on The Demise of the HP-UX System…
H4mm3r on Avoiding catastrophe!
Vladimir on Argument list too long?
ddouthitt on The UNIX find command and…
Mihir G joshi on The UNIX find command and…

Category Cloud

BSD Career Debian Debugging Fedora FreeBSD HPUX Learning Linux MacOS X Mind Hacks Mobile Computing NetBSD Networking OpenBSD OpenSolaris Open Source OpenVMS Personal Notes Portable Presentations Red Hat Scripting Security Solaris Tips Ubuntu UNIX Wheel Group Windows

Archives

Feeds

Links