<?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: Automation in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572026#M372835</link>
    <description>Hi &amp;amp; How are you?&lt;BR /&gt;&lt;BR /&gt;Playing with SSH and SUDO would require you to log into each system and have setup.&lt;BR /&gt;&lt;BR /&gt;I will need to check "Distributed Systems Administration Utilities"&lt;BR /&gt;&lt;BR /&gt;How about a dirty way of using expect.&lt;BR /&gt;Write some 10-15 liners by putting conditions in expect program ( you may switch to uid 0 later within expect program and thats what your system expects to NOT login as uid 0).&lt;BR /&gt;&lt;BR /&gt;Put expect on either HPUX box or find expect in any redhat.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;p.s. No points for a dirty way.&lt;BR /&gt;&lt;BR /&gt;Chocolates?&lt;BR /&gt;&lt;BR /&gt;Cheers!!</description>
    <pubDate>Wed, 27 Jan 2010 20:52:10 GMT</pubDate>
    <dc:creator>Nido</dc:creator>
    <dc:date>2010-01-27T20:52:10Z</dc:date>
    <item>
      <title>Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572011#M372820</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Direct root login is diabled in all my servers. Now how can things be automated in such kind of environment. I made a second user with uid 0 and tried to use that for small tasks like user addition or running of script from one box to multiple but its being denied as the uid 0 is being captured as root's&lt;BR /&gt;&lt;BR /&gt;How can automation be done in such kind of an environment please. Would appreciate any help.</description>
      <pubDate>Wed, 27 Jan 2010 06:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572011#M372820</guid>
      <dc:creator>Spark_2</dc:creator>
      <dc:date>2010-01-27T06:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572012#M372821</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;i think its better if you use SUDO.&lt;BR /&gt;&lt;BR /&gt;if you like to download it :&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.7.2p1/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.7.2p1/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;mikap</description>
      <pubDate>Wed, 27 Jan 2010 06:09:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572012#M372821</guid>
      <dc:creator>Michal Kapalka (mikap)</dc:creator>
      <dc:date>2010-01-27T06:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572013#M372822</link>
      <description>Install sudo on your system and you can do all your system administrator tasks accordingly.</description>
      <pubDate>Wed, 27 Jan 2010 06:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572013#M372822</guid>
      <dc:creator>Jupinder Bedi</dc:creator>
      <dc:date>2010-01-27T06:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572014#M372823</link>
      <description>I already have sudo on my boxes. Please consider the scenario:&lt;BR /&gt;&lt;BR /&gt;I want to create a user on multiple boxes sitting in one server. Now all the others have direct root login disabled. Now how to go about it please.&lt;BR /&gt;&lt;BR /&gt;Similarly in case I want to have output like mirroring information and want to run some script from one server to all...</description>
      <pubDate>Wed, 27 Jan 2010 06:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572014#M372823</guid>
      <dc:creator>Spark_2</dc:creator>
      <dc:date>2010-01-27T06:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572015#M372824</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;I just wanted to underline the fact that&lt;BR /&gt;&lt;BR /&gt;" its being denied as the uid 0 is being captured as root's"&lt;BR /&gt;&lt;BR /&gt;it is the normal behavior of any Unix like SO meaning that any program is looking at the UID not at the user name. This is done by invoking getuid(). Two users with the same UID are treated in the same way.&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Wed, 27 Jan 2010 07:48:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572015#M372824</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-01-27T07:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572016#M372825</link>
      <description>Thanks Horia, I understand that fact now. &lt;BR /&gt;&lt;BR /&gt;Someone please help with the basic problem also</description>
      <pubDate>Wed, 27 Jan 2010 07:49:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572016#M372825</guid>
      <dc:creator>Spark_2</dc:creator>
      <dc:date>2010-01-27T07:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572017#M372826</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Michael already suggested a good approach of the problem.&lt;BR /&gt;&lt;BR /&gt;Once installed sudo, you should play with visudo in order to configure access to the non-root user to the desired programs (/usr/sbin/useradd , whatever your script/scrips are)&lt;BR /&gt;&lt;BR /&gt;man sudo&lt;BR /&gt;&lt;BR /&gt;man visudo.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Horia.</description>
      <pubDate>Wed, 27 Jan 2010 09:34:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572017#M372826</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-01-27T09:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572018#M372827</link>
      <description>Its not just within this server that I want to do things....I want configure a central from where scripting could be done to perform things on several other servers. &lt;BR /&gt;&lt;BR /&gt;Passwordless ssh doesnt help as direct root login is diabled on all the boxes. What else can be done please</description>
      <pubDate>Wed, 27 Jan 2010 09:36:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572018#M372827</guid>
      <dc:creator>Spark_2</dc:creator>
      <dc:date>2010-01-27T09:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572019#M372828</link>
      <description>&amp;gt;Its not just within this server that I want to do things....I want configure a central &lt;BR /&gt;&lt;BR /&gt;You must create a common user on all your servers that you want to perform the tasks.&lt;BR /&gt;&lt;BR /&gt;let's say you will create the user&lt;BR /&gt;&lt;BR /&gt;maintenance.&lt;BR /&gt;&lt;BR /&gt;On every managed server you must configure sudo for user maintenance to run useradd and &lt;BR /&gt;&lt;BR /&gt;From your station, you can create a script that would perform the same tasks on all servers. This script would &lt;BR /&gt;&lt;BR /&gt;ssh to your 1st server as maintenance, &lt;BR /&gt;sudo &lt;YOUR command=""&gt;&lt;BR /&gt;&lt;REPEAT the="" last="" line="" for="" every="" commands="" that="" you="" need="" to="" execute=""&gt;&lt;BR /&gt;&lt;BR /&gt;ssh to your 2nd server as maintenance and so on...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Horia.&lt;/REPEAT&gt;&lt;/YOUR&gt;</description>
      <pubDate>Wed, 27 Jan 2010 09:48:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572019#M372828</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-01-27T09:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572020#M372829</link>
      <description>I add a user 'maintenance' and make its entry passwordless in sudoers file.&lt;BR /&gt;&lt;BR /&gt;Now to perform root taska like useradd one must have appropriate permission. Till reaching the other box using ssh, things are fine but as soon as 'sudo useradd..' comes permission denied is being prompted.</description>
      <pubDate>Wed, 27 Jan 2010 10:05:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572020#M372829</guid>
      <dc:creator>Spark_2</dc:creator>
      <dc:date>2010-01-27T10:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572021#M372830</link>
      <description>Pls read "to run useradd and " &lt;BR /&gt;&lt;BR /&gt;as&lt;BR /&gt;&lt;BR /&gt;"to run useradd and any other commands you need"</description>
      <pubDate>Wed, 27 Jan 2010 10:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572021#M372830</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-01-27T10:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572022#M372831</link>
      <description>Thank you for continous help.It seems you missed some part of my previous post. Please go through again and suggest</description>
      <pubDate>Wed, 27 Jan 2010 10:19:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572022#M372831</guid>
      <dc:creator>Spark_2</dc:creator>
      <dc:date>2010-01-27T10:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572023#M372832</link>
      <description>&amp;gt; are fine but as soon as 'sudo useradd..' comes permission denied is being prompted.&lt;BR /&gt;&lt;BR /&gt;Let's say:&lt;BR /&gt;&lt;BR /&gt;which useradd&lt;BR /&gt;/usr/sbin/useradd&lt;BR /&gt;&lt;BR /&gt;In this case you did something wrong when configure sudo. Review your sudoers (edit the sudoers file only with visudo command!)&lt;BR /&gt;&lt;BR /&gt;Cmnd_Alias PRIV_CMDS = /usr/sbin/useradd, /path_to_yourscript/yourscript&lt;BR /&gt;&lt;BR /&gt;maintenance ALL= NOPASSWD: PRIV_CMDS&lt;BR /&gt;&lt;BR /&gt;Save the file sing :wq command&lt;BR /&gt;&lt;BR /&gt;You can also specify /usr/sbin/ and all your executables from /usr/sbin will be executed by maintenance user.&lt;BR /&gt;&lt;BR /&gt;This should do the job.&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Horia.</description>
      <pubDate>Wed, 27 Jan 2010 10:35:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572023#M372832</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-01-27T10:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572024#M372833</link>
      <description>If you have your ssh public keys set up on all of your servers you can use 'ssh' to execute your remote commands without logging in directly. Then you can write your scripts to perform the work you want from on server, i.e. useradd, etc. Just maek sure to use the full path to the commands in your scripts.&lt;BR /&gt;&lt;BR /&gt;Beers,&lt;BR /&gt;&lt;BR /&gt;robert</description>
      <pubDate>Wed, 27 Jan 2010 16:39:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572024#M372833</guid>
      <dc:creator>Robert Salter</dc:creator>
      <dc:date>2010-01-27T16:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572025#M372834</link>
      <description>Have you taken a look at DSAU? (Distributed Systems Administration Utilites).&lt;BR /&gt;It is designed to "fan out" commands to a number of servers.&lt;BR /&gt;&lt;A href="http://docs.hp.com/en/T2786-90327/T2786-90327.pdf" target="_blank"&gt;http://docs.hp.com/en/T2786-90327/T2786-90327.pdf&lt;/A&gt;</description>
      <pubDate>Wed, 27 Jan 2010 16:54:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572025#M372834</guid>
      <dc:creator>melvyn burnard</dc:creator>
      <dc:date>2010-01-27T16:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572026#M372835</link>
      <description>Hi &amp;amp; How are you?&lt;BR /&gt;&lt;BR /&gt;Playing with SSH and SUDO would require you to log into each system and have setup.&lt;BR /&gt;&lt;BR /&gt;I will need to check "Distributed Systems Administration Utilities"&lt;BR /&gt;&lt;BR /&gt;How about a dirty way of using expect.&lt;BR /&gt;Write some 10-15 liners by putting conditions in expect program ( you may switch to uid 0 later within expect program and thats what your system expects to NOT login as uid 0).&lt;BR /&gt;&lt;BR /&gt;Put expect on either HPUX box or find expect in any redhat.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;p.s. No points for a dirty way.&lt;BR /&gt;&lt;BR /&gt;Chocolates?&lt;BR /&gt;&lt;BR /&gt;Cheers!!</description>
      <pubDate>Wed, 27 Jan 2010 20:52:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572026#M372835</guid>
      <dc:creator>Nido</dc:creator>
      <dc:date>2010-01-27T20:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Automation</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572027#M372836</link>
      <description>Can you please provide examples of what you are trying to get done.&lt;BR /&gt;SSH access with a sudo implementation will work. Just take some scripting to do it.</description>
      <pubDate>Wed, 27 Jan 2010 22:55:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/automation/m-p/4572027#M372836</guid>
      <dc:creator>D. Jackson_1</dc:creator>
      <dc:date>2010-01-27T22:55:19Z</dc:date>
    </item>
  </channel>
</rss>

