Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!xanth!kremer From: kremer@cs.odu.edu (Lloyd Kremer) Newsgroups: comp.sys.att Subject: Re: 6386 shutdown: I CAN'T BELIEVE at&t was really this stupid! Summary: shell field does not take arguments Message-ID: <9243@xanth.cs.odu.edu> Date: 15 Jun 89 13:26:40 GMT References: <483@oglvee.UUCP> <14401@bfmny0.UUCP> Organization: Old Dominion University, Norfolk, Va. Lines: 30 In article <14401@bfmny0.UUCP> tneff@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!