🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #11959

Problem with +mapname in auto maps

#11959
From: Ron Stanonik
Date: Fri, 07 Apr 1989 08:46
37 lines
2349 bytes
We've got sun386s and sun4s running sunos 4.0.1.

Although the man page for automount says you can include a yp map in an
automount map, apparently you can't include a yp map with the same name as
the map file.

I was trying to use a map file /auto.vol to allow local control of
automount, but have it default to the yp map.  /auto.vol on alpha looked
like

help	alpha:/usr/lib/help
+auto.vol

That is, alpha (sun386) should get the help files locally, but everything
else from the yp map auto.vol.  It does mount help, but nothing from the
yp gets mounted (as though having seen the name auto.vol once, as a file,
it doesn't try again, from the map.)  A bare + also doesn't work.
(Inconsistent with how other files are yp mapped: passwd, group, ...) If
the yp map has a different name, then it does mount from the map as well
as the local file.  (By the way, when testing be sure that automount was
started in the same directory as the map file; eg, the current directory
for automout started at boot time is probably /, so use /auto.mount.
Also, I've found that kill -9 automount is just trouble, but kill -TERM
makes it clean up after itself, so it can restarted by hand.)

That is, suns (386s in this case), with lots of disk, probably want to get
things locally, but the others want to mount from a server.  I could also
imagine a use for this with third party software not site licensed, which
expects to reside in /vol; ie, /auto.vol would mount it locally.

Ron Stanonik
stanonik@nprdc.navy.mil

[[ I don't know about the same directory stuff.  Seems to me that I was
starting the automounter from some directory other than /etc and was
giving it "/etc/automount.conf" for a file name.  What problems have you
experienced starting it in a different directory?  --wnl ]]
Technical Details
Message-ID: <8903231752.AA18500@atlantic.nprdc.navy.mil>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ames!ll-xn!mit-eddie!husc6!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ames!ll-xn!mit-eddie!husc6!rice!sun-spots-request
From: stanonik@nprdc.navy.mil (Ron Stanonik)
Newsgroups: comp.sys.sun
Subject: Problem with +mapname in auto maps
Keywords: Networks
Message-ID: <8903231752.AA18500@atlantic.nprdc.navy.mil>
Date: 7 Apr 89 08:46:51 GMT
Sender: usenet@rice.edu
Organization: Sun-Spots
Lines: 37
Approved: Sun-Spots@rice.edu
Original-Date: 23 March 1989 0952-PST (Thursday)
X-Sun-Spots-Digest: Volume 7, Issue 228, message 2 of 10