<?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: sudo setup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151518#M734905</link>
    <description>&amp;gt;&amp;gt;This will su them to root upon login into their account using sudo.&lt;BR /&gt;&lt;BR /&gt;True, BUT it will NOT log any commands the are issued AFTER you become root.</description>
    <pubDate>Tue, 20 Jan 2009 19:15:37 GMT</pubDate>
    <dc:creator>Patrick Wallek</dc:creator>
    <dc:date>2009-01-20T19:15:37Z</dc:date>
    <item>
      <title>sudo setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151514#M734901</link>
      <description>I am looking to install sudo but cannot find any information about setting it up in the users' .profile file to automatically make sudo run for the user. I do not want to rely on users typing sudo before every command. I know nobody will do this. Any info?</description>
      <pubDate>Tue, 20 Jan 2009 15:56:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151514#M734901</guid>
      <dc:creator>Michael G Jaynes</dc:creator>
      <dc:date>2009-01-20T15:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: sudo setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151515#M734902</link>
      <description>&amp;gt;&amp;gt;automatically make sudo run for the user.&lt;BR /&gt;&lt;BR /&gt;Not possible.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;I do not want to rely on users typing sudo before every command. I know nobody will do this&lt;BR /&gt;&lt;BR /&gt;If they want their commands to run properly they WILL do it.&lt;BR /&gt;&lt;BR /&gt;The other option is to set up an alias for whatever command(s) the user will run.&lt;BR /&gt;&lt;BR /&gt;alias ssu='/usr/local/bin/sudo su -'&lt;BR /&gt;&lt;BR /&gt;Thus, when the user types 'ssu' at the prompt it would run the 'sudo su -' command for them.&lt;BR /&gt;&lt;BR /&gt;This is about all you will be able to do.  There is no way to tell the shell to prepend 'sudo' to every command typed.  You really would not want to do that anyway.</description>
      <pubDate>Tue, 20 Jan 2009 16:09:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151515#M734902</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-01-20T16:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: sudo setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151516#M734903</link>
      <description>Hmm I see. &lt;BR /&gt;&lt;BR /&gt;Well let me give you a little bit of background. There are only two users of our HP-UX servers. The two of us are both administrators and regularly use the root account. I cannot rely on the other admin to type sudo in order for it to log his actions. &lt;BR /&gt;&lt;BR /&gt;SOX is making us give a paper trail as to which one of us are using the root account when and what we are doing while logged in as root. I believe sudo will give me the proper logging. I have also looked at Symark's Powerbroker. While extremely powerful, it is overkill. Any suggestions?</description>
      <pubDate>Tue, 20 Jan 2009 16:28:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151516#M734903</guid>
      <dc:creator>Michael G Jaynes</dc:creator>
      <dc:date>2009-01-20T16:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: sudo setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151517#M734904</link>
      <description>You can do something like this with sudo:&lt;BR /&gt;&lt;BR /&gt;- visudo&lt;BR /&gt;&lt;BR /&gt;- create a user alias defining your root users:&lt;BR /&gt;&lt;BR /&gt;User_Alias ROOT_USERS = user1, user2&lt;BR /&gt;&lt;BR /&gt;- Define the su to root command:&lt;BR /&gt;ROOT_USERS ALL = NOPASSWD: /usr/bin/su [-]&lt;BR /&gt;&lt;BR /&gt;Then in the .profile for each user, add:&lt;BR /&gt;sudo su -&lt;BR /&gt;&lt;BR /&gt;This will su them to root upon login into their account using sudo.   &lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jan 2009 17:05:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151517#M734904</guid>
      <dc:creator>Autocross.US</dc:creator>
      <dc:date>2009-01-20T17:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: sudo setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151518#M734905</link>
      <description>&amp;gt;&amp;gt;This will su them to root upon login into their account using sudo.&lt;BR /&gt;&lt;BR /&gt;True, BUT it will NOT log any commands the are issued AFTER you become root.</description>
      <pubDate>Tue, 20 Jan 2009 19:15:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151518#M734905</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-01-20T19:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: sudo setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151519#M734906</link>
      <description>/home/root/.sh_history will show all commands executed by root.  If you want to show the activities of each user, add something like this to the .profile of root:&lt;BR /&gt;&lt;BR /&gt;HISTFILE=${HOME}/.sh_history_`who am i|awk '{ print $1}'`&lt;BR /&gt;date &amp;gt;&amp;gt;$HISTFILE&lt;BR /&gt;export HISTFILE&lt;BR /&gt;HISTSIZE=50000 &lt;BR /&gt;export HISTSIZE&lt;BR /&gt;&lt;BR /&gt;This will create a history file for each user that becomes root with the date.&lt;BR /&gt;&lt;BR /&gt;Also, for the above sudo commands to work, each user needs to be in the SU_ROOT_GROUP defined in /etc/default/security, if they aren't already.</description>
      <pubDate>Tue, 20 Jan 2009 19:40:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151519#M734906</guid>
      <dc:creator>Autocross.US</dc:creator>
      <dc:date>2009-01-20T19:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: sudo setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151520#M734907</link>
      <description>Thank you for your responses. &lt;BR /&gt;&lt;BR /&gt;We had a miss on our SOX audit last year since only two of us log into the machines. We both tend to log in with the root account. We have since started logging in with our user accounts and su-ing to root as needed. But we still are lacking proof that only the two of us are using the root account.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jan 2009 19:50:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151520#M734907</guid>
      <dc:creator>Michael G Jaynes</dc:creator>
      <dc:date>2009-01-20T19:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: sudo setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151521#M734908</link>
      <description>Proof can be found in /var/adm/sulog:&lt;BR /&gt;&lt;BR /&gt;grep '[a-zA-Z0-9]-root' /var/adm/sulog&lt;BR /&gt;(shows everyone that became root)&lt;BR /&gt;&lt;BR /&gt;Also, to show all sudo commands run as root:&lt;BR /&gt;&lt;BR /&gt;grep "sudo.*USER=root" /var/adm/syslog/syslog.log&lt;BR /&gt;&lt;BR /&gt;As long as these logs are archived for long period, i would think that would be proof enough.  It has been for our security audits.&lt;BR /&gt;&lt;BR /&gt;Do the auditors have any recommendations for correcting the finding?  I'd be interested to know what they are.</description>
      <pubDate>Tue, 20 Jan 2009 20:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151521#M734908</guid>
      <dc:creator>Autocross.US</dc:creator>
      <dc:date>2009-01-20T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: sudo setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151522#M734909</link>
      <description>Thanks guys, the combination of answers received I am able to get all the information I need in my development box. I will do a little more testing and will get this into production asap. Thank you for the responses.</description>
      <pubDate>Tue, 20 Jan 2009 21:46:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151522#M734909</guid>
      <dc:creator>Michael G Jaynes</dc:creator>
      <dc:date>2009-01-20T21:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: sudo setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151523#M734910</link>
      <description>Combination of the history file, sudo setup and the sulog. Thank you</description>
      <pubDate>Tue, 20 Jan 2009 21:46:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/sudo-setup/m-p/5151523#M734910</guid>
      <dc:creator>Michael G Jaynes</dc:creator>
      <dc:date>2009-01-20T21:46:40Z</dc:date>
    </item>
  </channel>
</rss>

