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: HP-UX. Tags: , , , , .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <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 Support freedom The Internet Traffic Report monitors the flow of data around the world. It then displays a value between zero and 100. Higher values indicate faster and more reliable connections.

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

Anthony on About
MikeT on Stress Relief: Laugh Out Loud…
yungchin on Sparse files – what, why…
Randal L. Schwartz on Perl Tidbits: Annoyances and…
Court on Perl Tidbits: Annoyances and…

Category Cloud

BSD Career Conferences Debian Debugging Disaster recovery Fedora FreeBSD HP-UX Legal Linux MacOS X Mobile Computing Networking OpenBSD OpenSolaris OpenVMS Personal Notes Portable Code Presentations Productivity Programming Red Hat Scripting Security Solaris Storage Tips Ubuntu UNIX

Archives

Feeds

Blogroll

Pages

Meta