<?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: Looking for suggestions for a poor man's powerbroker in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267555#M674682</link>
    <description>Sorry to go off topic, but Patrick is right on the money. I once told a manager that if he couldn't trust me, he needed to fire me right there on the spot.</description>
    <pubDate>Thu, 11 Sep 2008 14:28:41 GMT</pubDate>
    <dc:creator>Court Campbell</dc:creator>
    <dc:date>2008-09-11T14:28:41Z</dc:date>
    <item>
      <title>Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267547#M674674</link>
      <description>SOX audits are upon us and accountability is the peak of worries for the sysadmins in my organization. We were asked by management not to use &lt;BR /&gt;&lt;BR /&gt;sudo su -&lt;BR /&gt;&lt;BR /&gt;command but use every each command with a sudo prefix to it when we need to run it as root. Considering we are spending a very good part of 8 hours every day, typing these commands, it is a big inconvenience if not more detrimental to adapt this sudo prefixing the commands.&lt;BR /&gt;&lt;BR /&gt;I know powerbroker can log whatever you typed or passes through the screen buffer to a file located on a remote server. We have suggested use of this utility but it looks like it will only be licensed for the critical (i.e. financial information bearing) servers due to the licensing costs. Yet, we are still expected to be accountable via sudo prefixing on all servers in our landscape.&lt;BR /&gt;&lt;BR /&gt;My question is, can there be a way to tell sudo to create a subshell where the screen and keyboard buffers will be captured and sent to a different server on the network ? This could be by recompling sudo or using another similar, license free (or very close to free) utility. &lt;BR /&gt;&lt;BR /&gt;Has anyone implement something similar ?&lt;BR /&gt;&lt;BR /&gt;Thanks for all the input.</description>
      <pubDate>Thu, 11 Sep 2008 12:21:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267547#M674674</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2008-09-11T12:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267548#M674675</link>
      <description>I've never actually tried this, so it may not work, but have you tried aliases for you most frequently used commands? E.g. alias cd=`sudo cd`.&lt;BR /&gt;&lt;BR /&gt;Alternatively, you could reduce your typing with s as an alias for sudo.&lt;BR /&gt;&lt;BR /&gt;Mark Syder (like the drink but spelt different)</description>
      <pubDate>Thu, 11 Sep 2008 12:42:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267548#M674675</guid>
      <dc:creator>MarkSyder</dc:creator>
      <dc:date>2008-09-11T12:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267549#M674676</link>
      <description>In our environment we have the sudo entries going to a separeate sudo log and then we copy the logs to a remote server via cron. I hardly ever use sudo su -, sudo -i, or sudo -s. One way to get around having to type sudo is via aliases. I would say that you could add "!sudo su -" to your sudoers but there may be occasions when this would be more convenient. But if you know roots password you can always just "su -". Hopefully I have given you some ideas.</description>
      <pubDate>Thu, 11 Sep 2008 12:45:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267549#M674676</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2008-09-11T12:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267550#M674677</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;I think alias will possibly work.&lt;BR /&gt;&lt;BR /&gt;So for SOX purposes root login is being forbidden altogether?&lt;BR /&gt;&lt;BR /&gt;We are under SOX here (US ownership) and we don't have such a restriction.&lt;BR /&gt;&lt;BR /&gt;We're a security company. We secure content for delivery to consumers from content producers (tv, movies).&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 11 Sep 2008 12:45:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267550#M674677</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-09-11T12:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267551#M674678</link>
      <description>Thanks for the answers so far.&lt;BR /&gt;&lt;BR /&gt;We have thought of aliasing commands but creating alias for every each obscure command that one uses daily is simply not feasible. Solution should be transparent.&lt;BR /&gt;&lt;BR /&gt;And the answer to if root login is prohibited. The answer is yes and no, as expected. Root password is a random string of 30+ characters, changed monthly by one of the sysadmins and kept in 3 locations in a safe in a sealed envelope and direct root login is only allowed through the console as any sane sysadmin does. On the other hand, people like me, who have sysadmin group privileges are able to access a root shell via &lt;BR /&gt;&lt;BR /&gt;sudo su -&lt;BR /&gt;&lt;BR /&gt;but the caveat is, once you are in the root shell using this command, there is no way that auditors can tell what commands you have executed. And since there are more than one person with this level of access privileges, if 2 people were using root shell at the same time (by the way limiting number of admin user logins is not an option) and something bad happens to the system, the question of "who to blame ?" turns into a finger pointing match. This has never happened but at least, this is the mentality why we need this accountability. Also, using powerbroker in the past saved my rear end more than once, by checking the pb.log files on the master server to figure out what went wrong. But again pb is way too expensive to deploy on all our servers.&lt;BR /&gt;&lt;BR /&gt;What I am looking for by the way of sudo is:&lt;BR /&gt;&lt;BR /&gt;1. user issues "sudo su -" command and gets authorized&lt;BR /&gt;2. sudo spawns a subshell with logging enabled as in "script" command"&lt;BR /&gt;3. output of the script command goes to a remote server&lt;BR /&gt;&lt;BR /&gt;this approach above is one way I can envision this could be done, although quite hard.&lt;BR /&gt;&lt;BR /&gt;second way I see this happen:&lt;BR /&gt;&lt;BR /&gt;1. user issues "sudo su -" command and gets authorized&lt;BR /&gt;2. sudo allows every command typed, to go to syslog, not only failures and errors. This could even be configured by syslog.conf file but I have not investigated this option.&lt;BR /&gt;3. by means of syslog.conf, server sends the logs to a remote server simultaneously.&lt;BR /&gt;4. on remote server, a perl or similar script can be utilized to skim out the sudo directives out of the whole syslog file.&lt;BR /&gt;&lt;BR /&gt;On this approach, I see a need for recompilation os sudo binaries but not being a programmer myself, I am not even sure if this mechanism can be built into the application.&lt;BR /&gt;&lt;BR /&gt;Again thanks for all the responses in advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2008 13:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267551#M674678</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2008-09-11T13:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267552#M674679</link>
      <description>Mel,&lt;BR /&gt;&lt;BR /&gt;Fortunately our SOX controls are more lenient in this reguard. But I did add this to root's profile because I got tired of trying to figure out who was doing what. Granted this isn't fool proof, but it may spark some other ideas:&lt;BR /&gt;&lt;BR /&gt;# Setup history file&lt;BR /&gt;&lt;BR /&gt;        WHOAMI=$(who am i | awk '{print $1}')&lt;BR /&gt;        touch ~/.${WHOAMI}_sh_history&lt;BR /&gt;        HISTFILE=~/.${WHOAMI}_sh_history&lt;BR /&gt;        export HISTFILE&lt;BR /&gt;        echo "# Open: $(date)\n\0000\c" &amp;gt;&amp;gt; $HISTFILE&lt;BR /&gt;&lt;BR /&gt;This creates a separate history for each user but it can be circumvented as you know.</description>
      <pubDate>Thu, 11 Sep 2008 13:19:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267552#M674679</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2008-09-11T13:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267553#M674680</link>
      <description>I'm not sure what you want can be done easily just via sudo. &lt;BR /&gt;&lt;BR /&gt;What if you were to add something like:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/script root.$(date +%m%d%y).$(date +%H%M%S)&lt;BR /&gt;&lt;BR /&gt;to root's .profile?  That would then record everything root does.  You could have a log directory that the logs are kept it.&lt;BR /&gt;&lt;BR /&gt;Caveats: 1) Being root, you could turn off the script command ; 2) Being root you could potentially blow away the script log, or the entire log directory ; 3) I honestly hate the SOX audits because they have the mentality of guilty until proven innocent and cause management not to trust their administrators.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2008 13:20:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267553#M674680</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-09-11T13:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267554#M674681</link>
      <description>Mel,&lt;BR /&gt;&lt;BR /&gt;Sounds like you need sudosh:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://sourceforge.net/projects/sudosh/" target="_blank"&gt;http://sourceforge.net/projects/sudosh/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Never tried it myself, but seems pretty close to what you're looking for - not sure whether it is still a maintained product as can't see much action on it in the last 3 years but...&lt;BR /&gt;&lt;BR /&gt;Without looking at what it does, make sure it won't end up screwing up single-user mode!&lt;BR /&gt;&lt;BR /&gt;Looking in the notes is appears people have got it to compile on HP-UX.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 11 Sep 2008 13:31:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267554#M674681</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2008-09-11T13:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267555#M674682</link>
      <description>Sorry to go off topic, but Patrick is right on the money. I once told a manager that if he couldn't trust me, he needed to fire me right there on the spot.</description>
      <pubDate>Thu, 11 Sep 2008 14:28:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267555#M674682</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2008-09-11T14:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267556#M674683</link>
      <description>Duncan -- that is sweet. I just compiled it on a test box and it really cool. I think I am going install it on all our prod boxes after I use it a little more. The replay functionality is really cool.</description>
      <pubDate>Thu, 11 Sep 2008 14:56:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267556#M674683</guid>
      <dc:creator>Court Campbell</dc:creator>
      <dc:date>2008-09-11T14:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267557#M674684</link>
      <description>The original sudosh is dead and unmaintained. At one point the author said it had some fundamental design problems that he wasn't going to fix because he was writing a total replacement.&lt;BR /&gt;&lt;BR /&gt;That replacement was EAS, which did fix a lot of the problems and offered more advanced features (like logging to a central server). That's what I use today for all of our application accounts. However, it was sold to some company shortly after release and by an amazing coincidence almost every trace of the free open source version promptly vanished from the web.&lt;BR /&gt;&lt;BR /&gt;Now there's a sudosh2, which is an attempt to resurrect the open source stuff. That's where I'd look if I had to start from scratch today.</description>
      <pubDate>Thu, 11 Sep 2008 15:59:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267557#M674684</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2008-09-11T15:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267558#M674685</link>
      <description>Heironimus&lt;BR /&gt;&lt;BR /&gt;Could you post or share EAS software? Is it possible? I want test it...&lt;BR /&gt;&lt;BR /&gt;Regards</description>
      <pubDate>Thu, 11 Sep 2008 16:10:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267558#M674685</guid>
      <dc:creator>Andres_13</dc:creator>
      <dc:date>2008-09-11T16:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267559#M674686</link>
      <description>Duncan &amp;amp; Heironimus,&lt;BR /&gt;&lt;BR /&gt;Thanks for this information. Do you have a link where the original sudosh author says about the problems of his software as well as name of the company acquired the EAS software package ? &lt;BR /&gt;&lt;BR /&gt;Depending on what the deficiencies in the original sudosh, I might still consider it, or if the company acquiring the EAS package is charging a more reasonable licensing costs, I might consider that one as well. I hope it was not Symark who acquired EAS to eliminate the competititon.&lt;BR /&gt;&lt;BR /&gt;Any further info would be invaluable.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 11 Sep 2008 16:50:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267559#M674686</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2008-09-11T16:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267560#M674687</link>
      <description>Copies of EAS are still around, but it looks like all of the stuff on sourceforge for EAS is gone. I found this link by doing a google search on the exact filename.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.sfr-fresh.com/unix/privat/eas-2.0.00.tar.gz" target="_blank"&gt;http://www.sfr-fresh.com/unix/privat/eas-2.0.00.tar.gz&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I think I originally saw the comments about design problems in sudosh on the sourceforge mailing list or forum. Unfortunately, both seem to be gone now. I don't know if they're gone because the author took them down or if they were a victim of sourceforge's interface redesign.&lt;BR /&gt;&lt;BR /&gt;The information on somebody buying EAS is secondhand and I don't know the name of the company. One of my colleagues saw them at a trade show a year or two ago. They were apparently quite proud of the fact that they had rewritten most of the code and converted it to rely on MS SQL Server for audit log storage. That second point was a total dealbreaker in our environment (not that we were really looking to spend money).&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Sep 2008 21:21:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267560#M674687</guid>
      <dc:creator>Heironimus</dc:creator>
      <dc:date>2008-09-11T21:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for suggestions for a poor man's powerbroker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267561#M674688</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Others already gave some good pointers.&lt;BR /&gt;&lt;BR /&gt;I actually wrote a Knowledge Brief on&lt;BR /&gt;using SUDO and SUDOSH on Solaris,&lt;BR /&gt;Linux and HP-UX. I did some&lt;BR /&gt;projects for customers with them.&lt;BR /&gt;They work nicely.&lt;BR /&gt;&lt;BR /&gt;However, if you want to move into then 21st&lt;BR /&gt;century maybe you should start looking at&lt;BR /&gt;things like Role based Access Control&lt;BR /&gt;(RBAC) on HP-UX. I teach various Unix courses&lt;BR /&gt;and I am trying to show&lt;BR /&gt;students how powerful and useful RBAC&lt;BR /&gt;is (native to Solaris, ported to Linux,&lt;BR /&gt;and works on newer HP-UX releases).&lt;BR /&gt;&lt;BR /&gt;Basically, you set up roles, add commands&lt;BR /&gt;to roles, and then assign users to roles.&lt;BR /&gt;Voila.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;VK2COT</description>
      <pubDate>Fri, 12 Sep 2008 06:06:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/looking-for-suggestions-for-a-poor-man-s-powerbroker/m-p/4267561#M674688</guid>
      <dc:creator>VK2COT</dc:creator>
      <dc:date>2008-09-12T06:06:03Z</dc:date>
    </item>
  </channel>
</rss>

