6386 shutdown: I CAN'T BELIEVE at&t was really this stupid!

Lloyd Kremer kremer at cs.odu.edu
Thu Jun 15 23:26:40 AEST 1989



In article <14401 at bfmny0.UUCP> tneff at bfmny0.UUCP (Tom Neff) writes:

>Also - to simplify the shutdown procedure in the event of my team's absence
>(say, if someone had to run in and shut things off due to an emergency in
>the building or an impending power shutdown), I create the following
>entry in /etc/passwd:
>
>	shutdown:x:0:1:Shut down the system:/usr/shutdown:/bin/sh
>
>and the following /usr/shutdown/.profile:
>
>	cd /
>	exec /etc/shutdown -y -g15
>
>I could do the same thing directly by naming shutdown as the startup 
>shell, but I hate having to edit /etc/passwd just to change things 
>like delay options. 


Small point, but I don't think you *could* do it directly in /etc/passwd.
In any AT&T system I know, the shell field of /etc/passwd does not allow
options or arguments.

-- 
					Lloyd Kremer
					Brooks Financial Systems
					...!uunet!xanth!brooks!lloyd
					Have terminal...will hack!



More information about the Comp.sys.att mailing list