home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!cs.utexas.edu!torn!nott!emr1!craven
- From: craven@cg.emr.ca (Jim Craven)
- Subject: Re: Direct automounter map problem (involving m
- Message-ID: <1992Nov19.134617.3547@emr1.emr.ca>
- Sender: news@emr1.emr.ca
- Nntp-Posting-Host: cocos.cg.emr.ca
- Reply-To: craven@cg.emr.ca
- Organization: Dept. of Energy, Mines & Resources, Canada
- References: <1992Nov18.235235.9294@elroy.jpl.nasa.gov>
- Date: Thu, 19 Nov 1992 13:46:17 GMT
- Lines: 73
-
- In article 9294@elroy.jpl.nasa.gov, earle@elroy.jpl.nasa.gov (Greg Earle - Gainfully Unemployed) writes:
- >Two automount-related questions:
- >
- >I'm trying to convert a small Sun shop (12 hosts) over to an automounted
- >world. So far, I have a very simple setup (waiting for the big switchover to
- >auto.home), as follows.
- >
- >auto.master:
- >
- ># Directory Map NFS Mount Options
- >/- auto.direct -rw,hard,intr,noquota
- >/net -hosts -ro
- >
- >auto.direct:
- >
- ># Directory Map NFS Mount Options
- >/usr/local sapms01:/usr/local -grpid,rw,noquota,hard,intr,\
- >root=dopey:sleazy:grumpy:etc. ...
- >
- >I've fired up automount on all the machines ("automount /usr/local -null" on
- >the "sapms01" machine in question) and everyone can see /usr/local perfectly
- >fine. However, it appears that the "root=host1:host2:..." is being ignored,
- >because when I run "/usr/local/bin/sudo" - which tries to look at the directory
- >"/usr/local/adm/sudo", protected with mode "drwx--S---" and owned by "root"
- >on the server - "sudo" fails because it can't get into the directory. So I
- >conclude running "sudo" as "root" on another machine is not getting recognized
- >as being "root" on the sapms01 server, and thus I conclude that the "root="
- >mount options in the auto.direct map are being ignored. Is there a way to
- >fix this?
- >
-
- As I recall, the "\" as a continuation character should only appear in the master map.
- Within a direct map the "\" indicates a desire to perform multiple mounts
- beneath the mount point. This is explained in the System Admin Guide, pg 15-12 or
- thereabouts. Besides, don't mount options come before the server:pathname location
- in a direct map?
-
- >Now, more importantly. I want to add AnswerBook to the auto.direct map.
- >They do not have enough disk space to install AnswerBook on disk, so I pulled
- >off the binaries into /usr/local/bin, stuck the "bookinfo" database in
- >/usr/local/etc and thought that I could do something simple like add this to
- >the auto.direct map:
- >
- > /usr/AnswerBook sapms01:/cdrom -ro,noquota,soft,intr
- >
- >sapms01 exports /cdrom -ro to the world, and I can manually do a
- >
- > mount -vrto nfs ro,soft,intr,noquota,bg sapms01:/cdrom /usr/AnswerBook
- >
- >on any of the clients, and this works fine.
- >
- >However, if I try to add the aforementioned line to auto.direct and rebuild the
- >map (and SIGHUP a running "automount" to get it recognized), it doesn't work.
- >"/usr/AnswerBook" becomes a symlink to nowhere (Twilight Zone) instead of into
- >/tmp_mnt like I expected. I tried SIGTERM'ing "automount" and restarted it,
- >but this didn't work either.
- >
- This problem may be related to the first...otherwise I can't help with this one.
-
- >What am I missing? Brent? Anyone? Am I all wet to use direct maps? I will
- >use indirect maps for things like auto.home, of course, but for things that
- >like to live under /usr (like "local" and "AnswerBook", for example), I figured
- >that direct maps were better, until I hit this snag. Any answers appreciated.
- >
- > - Greg
-
- Jim
- ---
- Love is like the ozone layer, |Jim Craven (craven@cg.emr.ca)|
- You don't miss it until it's gone. |Geological Survey of Canada |
- ---Frank Drebbin, Police Squad |1 Observatory Cres., Ottawa |
- -----------------------------------------|K1A 0Y3 (613) 996-9935-------|
-
-