[16180] in Athena Bugs
Re: mkserv nfs/knfs misconfiguration?
daemon@ATHENA.MIT.EDU (Jonathon Weiss)
Wed Aug 19 22:35:53 1998
Date: Wed, 19 Aug 1998 22:35:51 -0400 (EDT)
To: Karl Ramm <kcr@MIT.EDU>
Cc: bugs@MIT.EDU, mkserv@MIT.EDU
In-Reply-To: "[16034] in Athena Bugs"
From: Jonathon Weiss <jweiss@MIT.EDU>
> I recently got this plastered over several of my xterms. Now, it seems to
> me that a) we already have a better mechanism for this sort of thing, b) in
> our environment it should be disabled by default, and c) this is a bad and
> misleading message.
> From root@sweet-transvestite.mit.edu: THE SYSTEM IS BEING SHUT DOWN NOW ! !
> !
> Log off now or risk your files being damaged
I would like to add the following code to knfs.add. It should cause
the machien to use shutdown_notify, rather than rwall, and it will
also remove the string telling people to log out, since
zshutdown_notify tells people to detach -host, however, users logged
into the machine will still be told to log out. I could probably be
convinced to apply it to nfs.add too, but my gut feeling is that
people using no-kerberized nfs are more likely to have non-Athenaized
clients. People with thoughts or suggestions should offer them.
patch <<EOF
*** /os/etc/shutdown Thu Jan 1 03:00:00 1970
--- /etc/shutdown Wed Aug 19 21:59:29 1998
***************
*** 27,41 ****
/usr/sbin/wall <<-!
$1
!
! if [ -x /usr/sbin/showmount -a -x /usr/sbin/rwall ]
then
! remotes=`/usr/sbin/showmount`
! if [ "X${remotes}" != "X" ]
! then
! /usr/sbin/rwall ${remotes} <<-!
! $1
! !
! fi
fi
}
--- 27,39 ----
/usr/sbin/wall <<-!
$1
!
! if [ -x /etc/athena/shutdown_notify ]
then
! /usr/bin/sed -e \
! '/^Log off now or risk your files being damaged$/d' \
! <<-! | /etc/athena/shutdown_notify
! $1
! !
fi
}
EOF
--
Jonathon