Public bug reported:

libnss-{resolve,mymachines,myhostname} automatically add/remove
themselves from /etc/nsswitch.conf on installation/removal.

But when (manually) adding NSS action specifiers, these do not get
removed along.

  * Install libnss-machines. This will change the "hosts" line in 
/etc/nsswitch.conf from e. g. "files dns" to "files dns mymachines".
  * Edit the file to add an action specifier: "files dns mymachines 
  * Remove/purge libnss-machines.
  * In current xenial (229-4ubuntu7)/yakkety (231-6) the hosts line ends up as 
"files dns [!UNAVAIL=return]", i. e. the action specifier now applies to "dns" 
but should have been removed.
  * With the fixed version, the action specifier is completely gone.
  * Re-test with installing libnss-resolve (which inserts itself before "dns") 
and modifying to "files resolve [!UNAVAIL=return] dns [foo=bar]", then purge 
libnss-resolve again -- this should again remove the [!UNAVAIL=return] but 
*NOT* "dns [foo=bar]".

** Affects: systemd (Ubuntu)
     Importance: Medium
     Assignee: Martin Pitt (pitti)
         Status: In Progress

** Affects: systemd (Ubuntu Xenial)
     Importance: Undecided
         Status: Triaged

** Also affects: systemd (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Changed in: systemd (Ubuntu)
   Importance: Undecided => Medium

** Changed in: systemd (Ubuntu)
     Assignee: (unassigned) => Martin Pitt (pitti)

** Changed in: systemd (Ubuntu)
    Milestone: None => ubuntu-16.09

** Changed in: systemd (Ubuntu Xenial)
       Status: New => Triaged

** Changed in: systemd (Ubuntu)
       Status: New => In Progress

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  Removing libnss-* does not remove corresponding options

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to