syntax error in nsswitch config near [ syntax error ]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs (Ubuntu) |
Fix Released
|
Undecided
|
Dimitri John Ledkov | ||
Quantal |
Fix Released
|
Undecided
|
Dimitri John Ledkov | ||
autofs5 (Debian) |
Fix Released
|
Unknown
|
|||
autofs5 (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Unassigned | ||
base-files (Ubuntu) |
Invalid
|
High
|
Unassigned | ||
Precise |
Invalid
|
High
|
Unassigned | ||
Quantal |
Invalid
|
High
|
Unassigned |
Bug Description
[IMPACT]
By default installed autofs, fails to parse the default/unmodified nsswitch.conf and hence does not fall back to files stanza. The parser fails if it doesn't find automount stanza in the nsswitch.conf, and by default there isn't one on Debian/Ubuntu systems. The fix is to change the flex parser to accept nsswitch.conf without an automount stanza as a valid configuration file (empty from the autofs point of view) which then makes is gracefully fallback to the files stanza as expected.
[TESTCASE]
* Install autofs package
* Notice "syntax erro in nsswitch config new near [ syntax error ]" in syslog
* Update package
* Notice that autofs starts, and mounts (if any) configured in /etc/auto.master are mounted.
* There is no syntax error from autofs in the syslog
[Regression Potential]
* If system administrator configured automoun in the nsswitch.conf, that behaviour is preserved and still supported.
* Previously expected default fallback behaviour did not work, i.e. mounts defined in auto.master with no changes to nsswitch.conf, but now do.
[Other Info]
* A similar patch has been applied in Debian
Changed in autofs5 (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in autofs5 (Debian): | |
status: | Unknown → New |
Changed in autofs5 (Ubuntu Precise): | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in base-files (Ubuntu Precise): | |
status: | New → Confirmed |
importance: | Undecided → High |
no longer affects: | autofs (Ubuntu Precise) |
no longer affects: | autofs5 (Ubuntu Quantal) |
Changed in autofs5 (Ubuntu Precise): | |
assignee: | nobody → Dmitrijs Ledkovs (dmitrij.ledkov) |
Changed in autofs (Ubuntu Quantal): | |
assignee: | nobody → Dmitrijs Ledkovs (dmitrij.ledkov) |
Changed in autofs5 (Ubuntu Precise): | |
assignee: | Dmitrijs Ledkovs (dmitrij.ledkov) → nobody |
no longer affects: | autofs5 (Ubuntu R-series) |
Changed in autofs5 (Ubuntu): | |
status: | Triaged → Invalid |
no longer affects: | autofs (Ubuntu R-series) |
no longer affects: | base-files (Ubuntu R-series) |
Changed in autofs5 (Debian): | |
status: | New → Fix Released |
It looks like /etc/nsswitch.conf misses a line for automount and autofs5 does not fall back to using files:
http://<email address hidden> /msg06181. html
Adding a line
automount: nis files
solves the issue for me on current Ubuntu lucid (autofs 5.0.4-3.1ubuntu4).