All of lore.kernel.org
 help / color / mirror / Atom feed
* Linux+Solaris - NIS auto.master versus autofs5
@ 2007-12-21 22:00 David Mack
  2007-12-22  8:28 ` Ian Kent
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: David Mack @ 2007-12-21 22:00 UTC (permalink / raw)
  To: autofs

I work in an environment in which Solaris and Linux machines NIS mount
the same automount maps, including auto.master. Typically,
/etc/auto.master just contains "+auto.master" on all of them.

With the advent of autofs5, this has started breaking. To get the
Linux machines running autofs5 to work, we've had to replace
/etc/auto.master with a version that looks something like this:

/volume yp:auto.vols
/system yp:auto.home
/local yp:auto.local
/homes yp:auto.homes
/home yp:auto.home
/xfn -xfn
/net -hosts             -nosuid

The NIS version (used by Solaris and older Linux machines) looks like this:

/volume auto.vols -intr,bg,tcp
/system auto.home
/local auto.local
/homes auto.homes -intr,bg,tcp
/home auto.home
/xfn -xfn
/net -hosts             -nosuid


Needless to say, I'm not wild about having to install a separate
/etc/auto.master on every new Linux machine.

It appears that the problem is that autofs5 doesn't like parameters
introduces with hyphens in auto.master, which Solaris unfortunately
requires.

Is there any way around this situation that will allow me to continue
to use a NIS-mounted auto.master on all of my machines?

I apologize if this was discussed to death a couple of years ago - I
looked in the archive and didn't find anything.

Dave

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux+Solaris - NIS auto.master versus autofs5
  2007-12-21 22:00 Linux+Solaris - NIS auto.master versus autofs5 David Mack
@ 2007-12-22  8:28 ` Ian Kent
  2007-12-22  8:46   ` Ian Kent
  2007-12-27  2:22 ` Ian Kent
  2008-01-08 10:19 ` Lukas Kolbe
  2 siblings, 1 reply; 5+ messages in thread
From: Ian Kent @ 2007-12-22  8:28 UTC (permalink / raw)
  To: David Mack; +Cc: autofs

On Fri, 2007-12-21 at 14:00 -0800, David Mack wrote:
> I work in an environment in which Solaris and Linux machines NIS mount
> the same automount maps, including auto.master. Typically,
> /etc/auto.master just contains "+auto.master" on all of them.

That should work fine.

> 
> With the advent of autofs5, this has started breaking. To get the
> Linux machines running autofs5 to work, we've had to replace
> /etc/auto.master with a version that looks something like this:
> 
> /volume yp:auto.vols
> /system yp:auto.home
> /local yp:auto.local
> /homes yp:auto.homes
> /home yp:auto.home
> /xfn -xfn
> /net -hosts             -nosuid

Using the map type syntax is very version 4 and shouldn't be needed at
all by version 5.

> 
> The NIS version (used by Solaris and older Linux machines) looks like this:
> 
> /volume auto.vols -intr,bg,tcp
> /system auto.home
> /local auto.local
> /homes auto.homes -intr,bg,tcp
> /home auto.home
> /xfn -xfn
> /net -hosts             -nosuid
> 
> 
> Needless to say, I'm not wild about having to install a separate
> /etc/auto.master on every new Linux machine.

And you shouldn't have to.

> 
> It appears that the problem is that autofs5 doesn't like parameters
> introduces with hyphens in auto.master, which Solaris unfortunately
> requires.

OK, I don't think that's correct.
Perhaps it has been fixed over time and I missed that I fixed it.

It is true that the man page specifies no "-" but I believe it is
accepted and works.

How about more information.
What version are you using?
How about a debug log?

Ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux+Solaris - NIS auto.master versus autofs5
  2007-12-22  8:28 ` Ian Kent
@ 2007-12-22  8:46   ` Ian Kent
  0 siblings, 0 replies; 5+ messages in thread
From: Ian Kent @ 2007-12-22  8:46 UTC (permalink / raw)
  To: David Mack; +Cc: autofs

On Sat, 2007-12-22 at 17:28 +0900, Ian Kent wrote:
> > 
> > It appears that the problem is that autofs5 doesn't like parameters
> > introduces with hyphens in auto.master, which Solaris unfortunately
> > requires.
> 
> OK, I don't think that's correct.
> Perhaps it has been fixed over time and I missed that I fixed it.
> 
> It is true that the man page specifies no "-" but I believe it is
> accepted and works.

And a quick test here confirms that this work for me even with a
relatively old verion 5.

Ian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux+Solaris - NIS auto.master versus autofs5
  2007-12-21 22:00 Linux+Solaris - NIS auto.master versus autofs5 David Mack
  2007-12-22  8:28 ` Ian Kent
@ 2007-12-27  2:22 ` Ian Kent
  2008-01-08 10:19 ` Lukas Kolbe
  2 siblings, 0 replies; 5+ messages in thread
From: Ian Kent @ 2007-12-27  2:22 UTC (permalink / raw)
  To: David Mack; +Cc: autofs

On Fri, 2007-12-21 at 14:00 -0800, David Mack wrote:
> I work in an environment in which Solaris and Linux machines NIS mount
> the same automount maps, including auto.master. Typically,
> /etc/auto.master just contains "+auto.master" on all of them.
> 
> With the advent of autofs5, this has started breaking. To get the
> Linux machines running autofs5 to work, we've had to replace
> /etc/auto.master with a version that looks something like this:
> 
> /volume yp:auto.vols
> /system yp:auto.home
> /local yp:auto.local
> /homes yp:auto.homes
> /home yp:auto.home
> /xfn -xfn
> /net -hosts             -nosuid
> 
> The NIS version (used by Solaris and older Linux machines) looks like this:
> 
> /volume auto.vols -intr,bg,tcp
> /system auto.home
> /local auto.local
> /homes auto.homes -intr,bg,tcp
> /home auto.home
> /xfn -xfn
> /net -hosts             -nosuid
> 
> 
> Needless to say, I'm not wild about having to install a separate
> /etc/auto.master on every new Linux machine.
> 
> It appears that the problem is that autofs5 doesn't like parameters
> introduces with hyphens in auto.master, which Solaris unfortunately
> requires.
> 
> Is there any way around this situation that will allow me to continue
> to use a NIS-mounted auto.master on all of my machines?
> 
> I apologize if this was discussed to death a couple of years ago - I
> looked in the archive and didn't find anything.
> 
> Dave
> 
> _______________________________________________
> autofs mailing list
> autofs@linux.kernel.org
> http://linux.kernel.org/mailman/listinfo/autofs

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Linux+Solaris - NIS auto.master versus autofs5
  2007-12-21 22:00 Linux+Solaris - NIS auto.master versus autofs5 David Mack
  2007-12-22  8:28 ` Ian Kent
  2007-12-27  2:22 ` Ian Kent
@ 2008-01-08 10:19 ` Lukas Kolbe
  2 siblings, 0 replies; 5+ messages in thread
From: Lukas Kolbe @ 2008-01-08 10:19 UTC (permalink / raw)
  To: David Mack; +Cc: autofs

Hi!

A late reply, but a similar thing has bitten me in the past:

> I work in an environment in which Solaris and Linux machines NIS mount
> the same automount maps, including auto.master. Typically,
> /etc/auto.master just contains "+auto.master" on all of them.
> 
> With the advent of autofs5, this has started breaking. To get the
> Linux machines running autofs5 to work, we've had to replace
> /etc/auto.master with a version that looks something like this:
> 
> /volume yp:auto.vols
> /system yp:auto.home
> /local yp:auto.local
> /homes yp:auto.homes
> /home yp:auto.home
> /xfn -xfn
> /net -hosts             -nosuid

With autofs5, it does honor settings in /etc/nsswitch.conf.
A line like

automount:      nis files

in there does tell autofs5 to lookup the maps first via nis, then via
files, so there shouldn't be a need to explicitly specify yp: maps in
the /etc/auto.master anymore so principially the old auto_master should
work?

-- 
Lukas

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-01-08 10:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-21 22:00 Linux+Solaris - NIS auto.master versus autofs5 David Mack
2007-12-22  8:28 ` Ian Kent
2007-12-22  8:46   ` Ian Kent
2007-12-27  2:22 ` Ian Kent
2008-01-08 10:19 ` Lukas Kolbe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.