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

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