home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / sun / admin / 8409 < prev    next >
Encoding:
Text File  |  1992-11-18  |  2.9 KB  |  67 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!caen!sdd.hp.com!elroy.jpl.nasa.gov!earle
  3. From: earle@elroy.jpl.nasa.gov (Greg Earle - Gainfully Unemployed)
  4. Subject: Direct automounter map problem (involving mounting a remote CD-ROM)
  5. Message-ID: <1992Nov18.235235.9294@elroy.jpl.nasa.gov>
  6. Followup-To: comp.sys.sun.admin
  7. Keywords: automount  direct map  CD-ROM
  8. Organization: Sun Consultant - stationed at California Microwave, Inc.
  9. Date: Wed, 18 Nov 1992 23:52:35 GMT
  10. Lines: 55
  11.  
  12. Two automount-related questions:
  13.  
  14. I'm trying to convert a small Sun shop (12 hosts) over to an automounted
  15. world.  So far, I have a very simple setup (waiting for the big switchover to
  16. auto.home), as follows.
  17.  
  18. auto.master:
  19.  
  20. # Directory     Map             NFS Mount Options
  21. /-              auto.direct     -rw,hard,intr,noquota
  22. /net            -hosts          -ro
  23.  
  24. auto.direct:
  25.  
  26. # Directory     Map             NFS Mount Options
  27. /usr/local      sapms01:/usr/local      -grpid,rw,noquota,hard,intr,\
  28. root=dopey:sleazy:grumpy:etc. ...
  29.  
  30. I've fired up automount on all the machines ("automount /usr/local -null" on
  31. the "sapms01" machine in question) and everyone can see /usr/local perfectly
  32. fine.  However, it appears that the "root=host1:host2:..." is being ignored,
  33. because when I run "/usr/local/bin/sudo" - which tries to look at the directory
  34. "/usr/local/adm/sudo", protected with mode "drwx--S---" and owned by "root"
  35. on the server - "sudo" fails because it can't get into the directory.  So I
  36. conclude running "sudo" as "root" on another machine is not getting recognized
  37. as being "root" on the sapms01 server, and thus I conclude that the "root="
  38. mount options in the auto.direct map are being ignored.  Is there a way to
  39. fix this?
  40.  
  41. Now, more importantly.  I want to add AnswerBook to the auto.direct map.
  42. They do not have enough disk space to install AnswerBook on disk, so I pulled
  43. off the binaries into /usr/local/bin, stuck the "bookinfo" database in
  44. /usr/local/etc and thought that I could do something simple like add this to
  45. the auto.direct map:
  46.  
  47.     /usr/AnswerBook    sapms01:/cdrom    -ro,noquota,soft,intr
  48.  
  49. sapms01 exports /cdrom -ro to the world, and I can manually do a
  50.  
  51.     mount -vrto nfs ro,soft,intr,noquota,bg sapms01:/cdrom /usr/AnswerBook
  52.  
  53. on any of the clients, and this works fine.
  54.  
  55. However, if I try to add the aforementioned line to auto.direct and rebuild the
  56. map (and SIGHUP a running "automount" to get it recognized), it doesn't work.
  57. "/usr/AnswerBook" becomes a symlink to nowhere (Twilight Zone) instead of into
  58. /tmp_mnt like I expected.  I tried SIGTERM'ing "automount" and restarted it,
  59. but this didn't work either.
  60.  
  61. What am I missing?  Brent?  Anyone?  Am I all wet to use direct maps?  I will
  62. use indirect maps for things like auto.home, of course, but for things that
  63. like to live under /usr (like "local" and "AnswerBook", for example), I figured
  64. that direct maps were better, until I hit this snag.  Any answers appreciated.
  65.  
  66.     - Greg
  67.