[comp.sys.hp] Root across NFS on HP9000/300 and HP9000/840...

christos@batcomputer.tn.cornell.edu (Christos S. Zoulas) (11/17/90)

No flames please! Yes I don't like writting into kmem but, I have to
share my sources subdirectory!

enjoy.

christos

#! /bin/sh
#
#  rootaccess - enable/disable root access for nfs clients
#
KERNEL="/hp-ux"
MEMORY="/dev/kmem"
NOBODY="_nobody"
#
case "$1" in
	on|yes|enable|allow)
		ANONUID="0x00000000";;
	off|no|disable|deny)
		ANONUID="0xfffffffe";;
	*)
		echo "usage: rootaccess [on|off]" 1>&2;
		exit 1
esac
#
(echo "$NOBODY/W $ANONUID"; echo '$q') | \
	adb -w $KERNEL $MEMORY
#
exit 0
-- 
   /------------------------------------------------------------------------\
   | Christos Zoulas         | 389 Theory Center, Electrical Engineering,   |
   | christos@ee.cornell.edu | Cornell University, Ithaca NY 14853.         |
   | christos@crnlee         | Phone: Disconnected  |   Fax: (607) 254 4565 |