<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: shutdown script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846590#M394129</link>
    <description>Closed...</description>
    <pubDate>Thu, 24 Feb 2005 13:03:20 GMT</pubDate>
    <dc:creator>Norman_21</dc:creator>
    <dc:date>2005-02-24T13:03:20Z</dc:date>
    <item>
      <title>shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846578#M394117</link>
      <description>I've added the following script to a .profile under a new account that I've created with root permission&lt;BR /&gt; shutdown -h -y 0&lt;BR /&gt;&lt;BR /&gt;But when I login using this account to execute the shutdown process, it prompts me with some error msg for a mounting file system. Any suggestions please?&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Oct 2002 18:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846578#M394117</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2002-10-01T18:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846579#M394118</link>
      <description>Sorry, I forgot to mention the home directory for the shutdown script. It is under /home . Please advise!!&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Oct 2002 18:41:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846579#M394118</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2002-10-01T18:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846580#M394119</link>
      <description>Shutdown cannot be run from a mounted file system.&lt;BR /&gt;&lt;BR /&gt;In order for the script to work, you need to add a &lt;BR /&gt;&lt;BR /&gt;cd /&lt;BR /&gt;&lt;BR /&gt;prior to your &lt;BR /&gt;&lt;BR /&gt;shutdown -h -y 0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Your script should work then.</description>
      <pubDate>Tue, 01 Oct 2002 18:42:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846580#M394119</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2002-10-01T18:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846581#M394120</link>
      <description>hi Patrick,&lt;BR /&gt;&lt;BR /&gt;Thanks man because actually that's what I did but since then I didn't try it. I can only do it once a week.&lt;BR /&gt;&lt;BR /&gt;Will let you know for any further information..</description>
      <pubDate>Tue, 01 Oct 2002 18:56:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846581#M394120</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2002-10-01T18:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846582#M394121</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Perhaps a better method creating a user for shutting down a system is to configure this in the passwd file&lt;BR /&gt;shdwn:uqlOLFsj.DwkQ:0:3::/:/sbin/shutdown -h -y 0</description>
      <pubDate>Tue, 01 Oct 2002 18:58:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846582#M394121</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2002-10-01T18:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846583#M394122</link>
      <description>hey lief,&lt;BR /&gt;&lt;BR /&gt;That seems interesting, could you please tell me more how waht would be the case with passwd when I login!</description>
      <pubDate>Tue, 01 Oct 2002 19:08:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846583#M394122</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2002-10-01T19:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846584#M394123</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Whichever method you choose -- placing the 'shutdown' command in the $HOME/.profile, or more directly, declaring the 'shutdown' command as the user's program to use as a shell in the '/etc/passwd' file, be sure to declare the user as one who is allowed to utilize the command in the first place!&lt;BR /&gt;&lt;BR /&gt;That is, be sure to update '/etc/shutdown.allow' with the user name you desire.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 01 Oct 2002 19:17:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846584#M394123</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-10-01T19:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846585#M394124</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;Thanks man. The shutdown.allow is empty and I'm not sure about it's permission. I would appreciate if let me know.&lt;BR /&gt;</description>
      <pubDate>Wed, 02 Oct 2002 02:05:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846585#M394124</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2002-10-02T02:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846586#M394125</link>
      <description>Hi,&lt;BR /&gt;The permission shuld be&lt;BR /&gt;-rw-r--r--   1 bin        bin              0 Nov 16  2000 shutdown.allow</description>
      <pubDate>Wed, 02 Oct 2002 02:19:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846586#M394125</guid>
      <dc:creator>Animesh Chakraborty</dc:creator>
      <dc:date>2002-10-02T02:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846587#M394126</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;this is a quote from "man 1m shutdown" (has an example will help you proceed):&lt;BR /&gt;&lt;BR /&gt;============================================================&lt;BR /&gt;The user is checked for authorization to execute the shutdown command.  Only authorized users can execute the shutdown command.  See FILES for more information on the /etc/shutdown.allow authorization file. &lt;BR /&gt;...&lt;BR /&gt;FILES&lt;BR /&gt;/etc/shutdown.allow&lt;BR /&gt;&lt;BR /&gt;Authorization file.&lt;BR /&gt;&lt;BR /&gt;The file contains lines that consist of a system host name and the login name of a user who is authorized to reboot or halt the system.  A superuser's login name must be included in this file in order to execute shutdown.  However, if the file is missing or of zero length, the root user can run the shutdown program to bring the system down.&lt;BR /&gt;&lt;BR /&gt;This file does not affect authorization to bring the system down to single-user state for maintenance purposes; that operation is permitted only when invoked by a superuser.&lt;BR /&gt;&lt;BR /&gt;A comment character, #, at the beginning of a line causes the rest of the line to be ignored (comments cannot span multiple lines without additional comment characters). Blank lines are also ignored.&lt;BR /&gt;&lt;BR /&gt;The wildcard character + can be used in place of a host name or a user name to specify all hosts or all users, respectively (see hosts.equiv(4)).&lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;     # user1 can shut down systemA and systemB&lt;BR /&gt;     systemA user1&lt;BR /&gt;     systemB user1&lt;BR /&gt;     # root can shut down any system&lt;BR /&gt;     + root&lt;BR /&gt;     # Any user can shut down systemC&lt;BR /&gt;     systemC  +&lt;BR /&gt;&lt;BR /&gt; WARNINGS&lt;BR /&gt;The user name compared with the entry in the shutdown.allow file is obtained using getlogin() or, if that fails, using getpwuid() (see getlogin(3C) and getpwent(3C)).&lt;BR /&gt;&lt;BR /&gt;The hostname in /etc/shutdown.allow is compared with the hostname obtained using gethostbyname() (see gethostent(3N)).&lt;BR /&gt;&lt;BR /&gt;shutdown must be executed from a directory on the root volume, such as the / directory.&lt;BR /&gt;&lt;BR /&gt;The maximum broadcast message that can be sent is approximately 970 characters.&lt;BR /&gt;&lt;BR /&gt;When executing shutdown on an NFS diskless cluster server and the ???o option is not entered, clients of the server will be rebooted.  No clients should be individually rebooted or shutdown while the cluster is being shutdown.&lt;BR /&gt;============================================================&lt;BR /&gt;&lt;BR /&gt;hope this helps!&lt;BR /&gt;Best regards&lt;BR /&gt;Yogeeraj</description>
      <pubDate>Wed, 02 Oct 2002 02:48:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846587#M394126</guid>
      <dc:creator>Yogeeraj_1</dc:creator>
      <dc:date>2002-10-02T02:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846588#M394127</link>
      <description>Thanks guys, yo explanation has helped me alot.</description>
      <pubDate>Wed, 02 Oct 2002 04:27:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846588#M394127</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2002-10-02T04:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846589#M394128</link>
      <description>Thanks guys, your explanation has helped me alot.</description>
      <pubDate>Wed, 02 Oct 2002 06:39:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846589#M394128</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2002-10-02T06:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: shutdown script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846590#M394129</link>
      <description>Closed...</description>
      <pubDate>Thu, 24 Feb 2005 13:03:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/shutdown-script/m-p/4846590#M394129</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2005-02-24T13:03:20Z</dc:date>
    </item>
  </channel>
</rss>

