Archive for October 18th, 2007

HP-UX: On using Name Service Switch

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.


Add comment 18 October 2007


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

Top Posts

Calendar

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

Recent Posts

Recent Comments

ddouthitt on Core Linux - packages
GRUBówka « Bl… on Installing GRUB on FreeBS…
monsun on Installing GRUB on FreeBS…
hictio on Core Linux - packages
locky on Installing GRUB on FreeBS…

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 Programming Red Hat Scripting Security Solaris Tips Ubuntu UNIX Wheel Group

Archives

Links