H. Peter Anvin writes:
> Richard Gooch wrote:
> >
> > I've got no problems with sample auto.* files. But the sample
> > auto.master file should either be empty, or have commented-out lines.
> >
> > And the NIS auto.master map should be automatically used, even if
> > /etc/auto.master exists. The if/else test I saw on the Debian 2.2
> > systems is bogus (wherever it came from).
> >
> > There should be a way of disabling use of the auto.master NIS map, but
> > that should be done in /etc/nsswitch.conf, just like everything
> > else. A file existence test is dumb. And the default should be that
> > the NIS map is used. I just want to be able to turn on the automounter
> > on all machines and not have to worry about anything else. I want to
> > manage the network from the server.
> >
> > I wasn't impressed when I had to start reading the autofs script to
> > answer "why the fuck doesn't it work?".
>
> Reading /etc/nsswitch.conf seems like the right thing to do.
That would have caused more frustration, since (as someone has already
pointed out) the autofs script didn't look at /etc/nsswitch.conf.
The if/else test was hardwired into the autofs script, so the only way
I could get my auto.master NIS map to be used at all was to remove
/etc/auto.master (a good idea anyway since it was creating silly
"sample" maps) or edit the script (evil).
Regards,
Richard....
Permanent: [EMAIL PROTECTED]
Current: [EMAIL PROTECTED]