home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / next / sysadmin / 4942 < prev    next >
Encoding:
Internet Message Format  |  1992-08-30  |  2.7 KB

  1. Path: sparky!uunet!usc!sdd.hp.com!decwrl!bu.edu!transfer!quiensabe.az.stratus.com
  2. From: dan@quiensabe.az.stratus.com (Dan Danz)
  3. Newsgroups: comp.sys.next.sysadmin
  4. Subject: Re: NetInfo from tty login
  5. Message-ID: <6015@transfer.stratus.com>
  6. Date: 31 Aug 92 03:42:43 GMT
  7. References: <Btt5np.18r@ux1.cso.uiuc.edu>
  8. Sender: usenet@transfer.stratus.com
  9. Reply-To: dan@az.stratus.com
  10. Lines: 54
  11.  
  12. David Lemson writes
  13. > muegel@rtsg.mot.com (Michael S. Muegel) writes:
  14. > >Previously, jbradsha@mentor.cc.purdue.edu (Jonathan Bradshaw) wrote:
  15. > >>This is undoubtably obvious (I hope) but neither I nor the syadmin of the
  16. > >>NeXT machine know how the NetInfo stuff can be changed from a root login
  17. > >>via telnet. It's no problem when logged into the console with the GUI
  18. > >>editor but is there anyway to put new entries in the mount list etc. from
  19. > >>remote?  I checked the FAQ and didn't see anything about this and manuals
  20. > >>seem to only geared from console logins.
  21. > >Could you use some hacked up nidump/niload scheme? I.e. use nidump to get
  22. > >the info, edit it, and them pop it back into NetInfo land via niload.
  23. > Sure.
  24. > There isn't anything you can't do with niload, nidump, niutil, and
  25. > nidomain.  (well, you might need awk or perl and surely grep to get
  26. > some of the neat views you can with NetInfoMangler, but you CAN do
  27. > it)
  28.  
  29. Be VERY careful with niload for hosts -- you'll lose the "serves" property
  30.  
  31. I've also been able to niutil to modify netinfo directories, including
  32. hosts, without a whole lot of trouble.  It's a little cumbersome, but it
  33. works.
  34.  
  35. You can even do it from a non-root login, if you know the root password.
  36. Here's a sample where I changed the "rw" option on a mount to a "ro".
  37.  
  38.  
  39. quiensabe[125]% niutil -list . /mounts                                        ~
  40. 238      bittersprings:/dan 
  41. 239      phoenix:/clients 
  42. 342      tucson:/Projects 
  43. quiensabe[126]% niutil -read . 238                                            ~
  44. name: bittersprings:/dan 
  45. opts: bg intr net rw soft timeo=20 rsize=1024 wsize=1024 
  46. dir: /Net 
  47. quiensabe[127]% niutil -createprop . 238 opts bg intr net ro soft timeo=20 rsiz
  48. e=1024 wsize=1024
  49. cannot create: Permission denied
  50. quiensabe[128]% niutil -p -createprop . 238 opts bg intr net ro soft timeo=20 r
  51. size=1024 wsize=1024
  52. Password: 
  53. quiensabe[129]% niutil -read . 238                                            ~
  54. name: bittersprings:/dan 
  55. opts: bg intr net ro soft timeo=20 rsize=1024 wsize=1024 
  56. dir: /Net 
  57.  
  58. --
  59. L. W. "Dan" Danz                  VOS Mail:  Dan_Danz@vos.stratus.com
  60. Sr Consulting Software SE         NeXT Mail: dan@az.stratus.com
  61. Customer Assistance Center        Voice Mail/Pager: (602) 852-3107
  62. Telecommunications Division       Customer Service: (800) 828-8513
  63. Stratus Computer, Inc. 4455 E. Camelback #115-A, Phoenix AZ 85018
  64.