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