<?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: Become root without asking password in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607961#M35429</link>
    <description>You can't be serious about using this method:&lt;BR /&gt;&lt;BR /&gt;But if you really trust this user :-)&lt;BR /&gt;make the required entries in the /etc/hosts.equiv and .rhosts files, and let the user do a&lt;BR /&gt;$rlogin &lt;LOCAL_HOST&gt; -l root &lt;BR /&gt;&lt;BR /&gt;Any user that knows your "trusted" users passwd can BECOME ROOT on your host. That's a violation of all security procedures and guidlines.&lt;BR /&gt;&lt;BR /&gt;If you give that user access form another machine, then anyone can SPOOF your host into thinking they are the trusted host and the trusted user. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You really need to follow Rainer's advice:&lt;BR /&gt;&lt;BR /&gt;chmod 555 &amp;lt;scriptname&amp;gt;        #make sure no one can write to it&lt;BR /&gt;chown root &amp;lt;scriptname&amp;gt;&lt;BR /&gt;chmod u+s &amp;lt;scriptname&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;/LOCAL_HOST&gt;</description>
    <pubDate>Tue, 06 Nov 2001 14:01:03 GMT</pubDate>
    <dc:creator>harry d brown jr</dc:creator>
    <dc:date>2001-11-06T14:01:03Z</dc:date>
    <item>
      <title>Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607952#M35420</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Is it possible to change user becoming "root" without asking the password ?&lt;BR /&gt;In a user script, I have to launch a command as root and the user can't know the password for root.&lt;BR /&gt;&lt;BR /&gt;can somebody help me ?&lt;BR /&gt;&lt;BR /&gt;thank's in advance.&lt;BR /&gt;Claudio.</description>
      <pubDate>Tue, 06 Nov 2001 08:58:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607952#M35420</guid>
      <dc:creator>Claudio_4</dc:creator>
      <dc:date>2001-11-06T08:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607953#M35421</link>
      <description>I would set up 'sudo' to do this. There are many situations such as yours that this product will cater for. It is easy to compile, it is free and can be downloaded as a compiled version. Here are the links:&lt;BR /&gt;&lt;BR /&gt;source&lt;BR /&gt;&lt;A href="http://www.courtesan.com/sudo" target="_blank"&gt;www.courtesan.com/sudo&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Already compiled version from &lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.2b1/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.2b1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;-Michael&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Nov 2001 09:08:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607953#M35421</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2001-11-06T09:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607954#M35422</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;"sudo" might be the perfect solution, it allows you to grant permission to specific users for specific commands.&lt;BR /&gt;&lt;BR /&gt;If it's an executable, you can set the "Set user ID on file execution"  (chmod u+s) and make root the owner of the file: this will execute the file as root.&lt;BR /&gt;&lt;BR /&gt;good luck,&lt;BR /&gt;Thierry.</description>
      <pubDate>Tue, 06 Nov 2001 09:08:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607954#M35422</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-11-06T09:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607955#M35423</link>
      <description>Become root without asking password  cannot be what you really want 'cuase this is much to dangerous&lt;BR /&gt;&lt;BR /&gt;Better use  SETUID root on the file&lt;BR /&gt;&lt;BR /&gt;chown root &lt;FILE&gt;&lt;BR /&gt;chmod u+s  &lt;FILE&gt;&lt;BR /&gt;&lt;BR /&gt;Now starting file &lt;FILE&gt; will run with root permissions&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Rainer&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/FILE&gt;&lt;/FILE&gt;&lt;/FILE&gt;</description>
      <pubDate>Tue, 06 Nov 2001 09:14:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607955#M35423</guid>
      <dc:creator>Rainer von Bongartz</dc:creator>
      <dc:date>2001-11-06T09:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607956#M35424</link>
      <description>Possible, but you could be opening up a huge security hole.&lt;BR /&gt;&lt;BR /&gt;Consider doing this:&lt;BR /&gt;#chown root:sys &lt;YOUR script=""&gt;&lt;/YOUR&gt;#chmod +s &lt;YOUR script=""&gt;&lt;/YOUR&gt;&lt;BR /&gt;This should solve your problem.</description>
      <pubDate>Tue, 06 Nov 2001 09:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607956#M35424</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-06T09:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607957#M35425</link>
      <description>But if you really trust this user :-) &lt;BR /&gt;make the required entries in the /etc/hosts.equiv and .rhosts files, and let the user do a &lt;BR /&gt;$rlogin &lt;LOCAL_HOST&gt; -l root&lt;BR /&gt;&lt;BR /&gt;&lt;/LOCAL_HOST&gt;</description>
      <pubDate>Tue, 06 Nov 2001 09:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607957#M35425</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-06T09:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607958#M35426</link>
      <description>Hi, &lt;BR /&gt;Solution you suggest is very dangerous from the point of view of system security. I would recommend to prepare the script as root and give it a s permission (script is executed as invoked by root):&lt;BR /&gt;&lt;BR /&gt;chmod u+s &amp;gt;script_name&amp;gt;</description>
      <pubDate>Tue, 06 Nov 2001 09:22:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607958#M35426</guid>
      <dc:creator>Marcin Wicinski</dc:creator>
      <dc:date>2001-11-06T09:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607959#M35427</link>
      <description>If you set up a suid script,&lt;BR /&gt;remember to revoke write permission,&lt;BR /&gt;so nobody can change what is in the script !&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Tue, 06 Nov 2001 09:35:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607959#M35427</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2001-11-06T09:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607960#M35428</link>
      <description>I'm sure a number of people will disagree but you should not set up any user (including sys admins) to be able to become root without a password.  Sudo is a good answer though suid programs / scripts can work, they're just much more complex to set up.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 06 Nov 2001 13:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607960#M35428</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-11-06T13:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607961#M35429</link>
      <description>You can't be serious about using this method:&lt;BR /&gt;&lt;BR /&gt;But if you really trust this user :-)&lt;BR /&gt;make the required entries in the /etc/hosts.equiv and .rhosts files, and let the user do a&lt;BR /&gt;$rlogin &lt;LOCAL_HOST&gt; -l root &lt;BR /&gt;&lt;BR /&gt;Any user that knows your "trusted" users passwd can BECOME ROOT on your host. That's a violation of all security procedures and guidlines.&lt;BR /&gt;&lt;BR /&gt;If you give that user access form another machine, then anyone can SPOOF your host into thinking they are the trusted host and the trusted user. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You really need to follow Rainer's advice:&lt;BR /&gt;&lt;BR /&gt;chmod 555 &amp;lt;scriptname&amp;gt;        #make sure no one can write to it&lt;BR /&gt;chown root &amp;lt;scriptname&amp;gt;&lt;BR /&gt;chmod u+s &amp;lt;scriptname&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;/LOCAL_HOST&gt;</description>
      <pubDate>Tue, 06 Nov 2001 14:01:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607961#M35429</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-06T14:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607962#M35430</link>
      <description>A few more points:&lt;BR /&gt;&lt;BR /&gt;Setting up the rlogin has the end result of making the user superuser.  So the user doesn't know the root password.  Big deal.  He no longer needs it.&lt;BR /&gt;&lt;BR /&gt;If you use a suid script at least chgrp it to a private group (no one in that group in /etc/group except the ones you want to be able to run the script), chown root (required), and chmod 4550 (no world access, no write for anyone).&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Tue, 06 Nov 2001 14:44:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607962#M35430</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-11-06T14:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607963#M35431</link>
      <description>One alternative tactic that I have used successfully is to provide a SAM user profile. SAM can give a user the setuid to root and you can restrict what the user can do or see. But this is an HP only solution. I have GUI buttons for things like startup and shutdown of databases and other routine tasks.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Nov 2001 19:23:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607963#M35431</guid>
      <dc:creator>David Rodman</dc:creator>
      <dc:date>2001-11-06T19:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607964#M35432</link>
      <description>I agree with Darrell, .rhosts is the worst way to do this. You have now advertised to the world that you let someone into your systems as root without a password. Plus you only gave points to the worst answer. Nothing against Deepak, but others have given you a secure and feasible answer.&lt;BR /&gt;&lt;BR /&gt;C</description>
      <pubDate>Tue, 06 Nov 2001 21:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607964#M35432</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-11-06T21:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607965#M35433</link>
      <description>No fair!!&lt;BR /&gt;&lt;BR /&gt;I did give Claudio the chown/chmod solution.&lt;BR /&gt;And, as an afterthought, added the information he asked for, all the while pointing out the security hazard.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 02:14:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607965#M35433</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-07T02:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607966#M35434</link>
      <description>Hi all !&lt;BR /&gt;&lt;BR /&gt;I thank's all for your help.&lt;BR /&gt;&lt;BR /&gt;I choose the ".rhosts / host.equiv" solution.  &lt;BR /&gt;In my implementation, it is not so dangerous I think (I hope !!).&lt;BR /&gt;&lt;BR /&gt;My implementation:&lt;BR /&gt;- The script is a menu of some O.S. command that user can perform on the system.&lt;BR /&gt;- I launch my script from .profile of user.&lt;BR /&gt;- I have disabled "^C" for user&lt;BR /&gt;- Inside of script, I use "rsh" to launch the O.S. command that need to be launched as root.&lt;BR /&gt;- The script is write protected; only root can modify it. &lt;BR /&gt;- The script perform a "logout" when user choose "end-work" from his menu.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;Thank's again.&lt;BR /&gt;Sorry, I can't assign point to all !!!&lt;BR /&gt;&lt;BR /&gt;Bye&lt;BR /&gt;Claudio.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Nov 2001 07:49:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607966#M35434</guid>
      <dc:creator>Claudio_4</dc:creator>
      <dc:date>2001-11-07T07:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607967#M35435</link>
      <description>can't assign point to all  ?!?&lt;BR /&gt;&lt;BR /&gt;cannot or will not ??</description>
      <pubDate>Wed, 07 Nov 2001 08:12:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607967#M35435</guid>
      <dc:creator>Thierry Poels_1</dc:creator>
      <dc:date>2001-11-07T08:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607968#M35436</link>
      <description>There is a product I use called Power Broker which allows users to "su" to root or any other privledged id and has the capability to remotely log all cmds entered. The user doesn't need the password.  I don't like using it myself b/c the remote server that does the logging is connected via a slooow WAN which yields a long keyboard latency.&lt;BR /&gt;&lt;A href="http://www.symark.com/powerbroker.htm" target="_blank"&gt;http://www.symark.com/powerbroker.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Wed, 07 Nov 2001 20:52:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607968#M35436</guid>
      <dc:creator>John Ferrara</dc:creator>
      <dc:date>2001-11-07T20:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607969#M35437</link>
      <description>Ok, Deepak, you did put in the other solution. The only reason I singled out the other answer was because Claudio gave points to that one and I assumed that was the one he was going to use.&lt;BR /&gt;&lt;BR /&gt;Claudio,&lt;BR /&gt;Can't assign points! What did you mouse break?&lt;BR /&gt;&lt;BR /&gt;I would contend that people are more likely to answer your questions if you have a good history of assigning points.  Up to you however.&lt;BR /&gt;C</description>
      <pubDate>Wed, 07 Nov 2001 21:30:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607969#M35437</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2001-11-07T21:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607970#M35438</link>
      <description>Curious, he has been a member for 2.5 years and this is the first question posted.&lt;BR /&gt;&lt;BR /&gt;He is also 1 for 16 in assigned points.&lt;BR /&gt;&lt;BR /&gt;Make that 17 now.</description>
      <pubDate>Wed, 07 Nov 2001 21:44:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607970#M35438</guid>
      <dc:creator>John Bolene</dc:creator>
      <dc:date>2001-11-07T21:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Become root without asking password</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607971#M35439</link>
      <description>Sorry !!!!!!!!!! .&lt;BR /&gt;&lt;BR /&gt;I'm a member from 2 years, but I'm new in the use of this forum ! (this is my first time !)&lt;BR /&gt;&lt;BR /&gt;I was wrong in thinking that points is to be assigned only to the solution I choose for my problem.&lt;BR /&gt;Now I know !! I can assign point to all the answer.&lt;BR /&gt;&lt;BR /&gt;Thank's again.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Nov 2001 07:45:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/become-root-without-asking-password/m-p/2607971#M35439</guid>
      <dc:creator>Claudio_4</dc:creator>
      <dc:date>2001-11-08T07:45:44Z</dc:date>
    </item>
  </channel>
</rss>

