home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.sun.admin
- Path: sparky!uunet!caen!sdd.hp.com!elroy.jpl.nasa.gov!earle
- From: earle@elroy.jpl.nasa.gov (Greg Earle - Gainfully Unemployed)
- Subject: Direct automounter map problem (involving mounting a remote CD-ROM)
- Message-ID: <1992Nov18.235235.9294@elroy.jpl.nasa.gov>
- Followup-To: comp.sys.sun.admin
- Keywords: automount direct map CD-ROM
- Organization: Sun Consultant - stationed at California Microwave, Inc.
- Date: Wed, 18 Nov 1992 23:52:35 GMT
- Lines: 55
-
- 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?
-
- 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.
-
- 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
-