<?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 profile in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828670#M478665</link>
    <description>hi all&lt;BR /&gt;how can we place a shutdown command in the user's .profile so that she can't do anything else.</description>
    <pubDate>Sat, 22 Jul 2006 14:11:15 GMT</pubDate>
    <dc:creator>Indrajit Bhagat</dc:creator>
    <dc:date>2006-07-22T14:11:15Z</dc:date>
    <item>
      <title>profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828670#M478665</link>
      <description>hi all&lt;BR /&gt;how can we place a shutdown command in the user's .profile so that she can't do anything else.</description>
      <pubDate>Sat, 22 Jul 2006 14:11:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828670#M478665</guid>
      <dc:creator>Indrajit Bhagat</dc:creator>
      <dc:date>2006-07-22T14:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828671#M478666</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Define it as the user's shell in /etc/passwd file.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Sat, 22 Jul 2006 14:26:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828671#M478666</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2006-07-22T14:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828672#M478667</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;The easiest way is to declare '/usr/sbin/shutdown -r y' as the program to use as the shell (i.e. the last field of the '/etc/passwd' record for the user in question.&lt;BR /&gt;&lt;BR /&gt;Then, specify the user in '/etc/shutdown.allow' to enable his/her use of the command.  Your modified '/etc/shutdown.allow' should look something like:&lt;BR /&gt;&lt;BR /&gt;serverhostname root&lt;BR /&gt;serverhostname indrajit&lt;BR /&gt;&lt;BR /&gt;See the manpages for 'shutdown(1M)' for additional information.&lt;BR /&gt;&lt;BR /&gt;Given this setup, when your user logs into your server, it is shutdown.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 22 Jul 2006 14:28:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828672#M478667</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-07-22T14:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828673#M478668</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;Correction.  The 'passwd' entry should read simply:&lt;BR /&gt;&lt;BR /&gt;/sbin/shutdown&lt;BR /&gt;&lt;BR /&gt;in lieu of somethign like '/usr/bin/sh'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Jul 2006 14:39:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828673#M478668</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-07-22T14:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828674#M478669</link>
      <description>Hi (again):&lt;BR /&gt;&lt;BR /&gt;How did I *not* answer your question?  Would you like a different method?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 22 Jul 2006 15:04:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828674#M478669</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-07-22T15:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: profile</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828675#M478670</link>
      <description>ok, alternate method is edit users id to 0 (root)and place shutdown command to users .profile</description>
      <pubDate>Sat, 22 Jul 2006 23:45:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/profile/m-p/3828675#M478670</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2006-07-22T23:45:45Z</dc:date>
    </item>
  </channel>
</rss>

