On 5 January 2016 at 17:25, Rob Seastrom <[email protected]> wrote:
> Yeah, that's along the lines of what I'd be doing, likely in awk since I'm 
> strange that way.

Nothing wrong with a bit of awk here and there. :)

> If I were to just keep the interesting lines from both files and append them 
> to the existing ones on a fresh VM, that should work right?  Does anything 
> get cached in the layer that looks at nsswitch.conf or should I just be able 
> to append and keep on trucking?  I suppose I could go digging in the source 
> code, but that sounds both time consuming and error-prone...  I've been 
> exposed to just enough flavors of unix to be paranoid about this sort of 
> thing.

I believe our nscd (name service cache) correctly invalidates[1] the
cache when you modify the files in "/etc".  I do this a lot with
"echo", "vi", "ssh otherhost getent passwd USERNAME >> /etc/passwd",
etc.  Never seems to go wrong!


Cheers.

[1]: 
https://github.com/joyent/illumos-joyent/blob/master/usr/src/cmd/nscd/cache.c#L1297-L1345

-- 
Joshua M. Clulow
UNIX Admin/Developer
http://blog.sysmgr.org


-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to