<?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: passwd passing from script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935527#M804728</link>
    <description>I hope you are new comer to this forum. Just view the thread and assign points in the relative reply. If you are not getting the way to assign, refer FAQ section.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
    <pubDate>Fri, 21 Oct 2005 04:33:48 GMT</pubDate>
    <dc:creator>Muthukumar_5</dc:creator>
    <dc:date>2005-10-21T04:33:48Z</dc:date>
    <item>
      <title>passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935519#M804720</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;Any idea on passing password of a user through script.&lt;BR /&gt;&lt;BR /&gt;username=Vijay&lt;BR /&gt;if user is already created than ...&lt;BR /&gt;&lt;BR /&gt;inside the script i am checking for the user,&lt;BR /&gt;if the user exists, than i want to pass the passwd to the user.&lt;BR /&gt;&lt;BR /&gt;Any idea on how to pass the passwd to users in script. I have heard of except(don't want to use it) but was looking for some mechanism which can allow passing of password to passwd command through pipe or something like so in the script.&lt;BR /&gt;&lt;BR /&gt;With best regards,&lt;BR /&gt;Vijay</description>
      <pubDate>Thu, 20 Oct 2005 23:09:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935519#M804720</guid>
      <dc:creator>Raisaab</dc:creator>
      <dc:date>2005-10-20T23:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935520#M804721</link>
      <description>if this is required to change or assign passwords to users in scripts, your only option is expect, nothing else will work.&lt;BR /&gt;&lt;BR /&gt;if this is for an automated ftp or something, together with being a horrendous security risk, you can use .netrc (see man pages for more info), but the best way is to use ssh/scp with trusted public/private key pairs between hosts.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 20 Oct 2005 23:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935520#M804721</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-10-20T23:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935521#M804722</link>
      <description>There are three ways to do it. (As far as I know.)&lt;BR /&gt;&lt;BR /&gt;Check user and exists, you can doone of the following.&lt;BR /&gt;&lt;BR /&gt;1. User /usr/sam/lbin/usermod.sam -p "pass_word" -F "user_name"&lt;BR /&gt;&lt;BR /&gt;-p option requires a encrypted password. so you can do as follows. the pass needs to be of 8 chars+2salt chars.&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/usermod.sam -p $(echo "test123te"|/usr/lbin/makekey) user_name &lt;BR /&gt;&lt;BR /&gt;Password will be test1234&lt;BR /&gt;&lt;BR /&gt;2. Use expect tool&lt;BR /&gt;&lt;BR /&gt;3. Replace the user password feild with sed/perl/awk etc. In any case, backup up the passwd file first.</description>
      <pubDate>Thu, 20 Oct 2005 23:21:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935521#M804722</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-10-20T23:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935522#M804723</link>
      <description>Hi RAC,&lt;BR /&gt;Yes this was the type of solution I was looking for ... &lt;BR /&gt;Thank you very much ... and you deserve a total 10 points for this ...&lt;BR /&gt;With warm regards,&lt;BR /&gt;Vijay</description>
      <pubDate>Fri, 21 Oct 2005 03:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935522#M804723</guid>
      <dc:creator>Raisaab</dc:creator>
      <dc:date>2005-10-21T03:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935523#M804724</link>
      <description>You can do checking as,&lt;BR /&gt;&lt;BR /&gt; id ${user} 1&amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt; if [[ ${?} -eq 0 ]]&lt;BR /&gt; then&lt;BR /&gt;   &lt;GIVE passwd=""&gt; scripting&lt;BR /&gt; fi&lt;BR /&gt;&lt;BR /&gt;You can use expect scripting to send passwd / sudo for local users also.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;BR /&gt;&lt;BR /&gt;&lt;/GIVE&gt;</description>
      <pubDate>Fri, 21 Oct 2005 03:12:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935523#M804724</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-21T03:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935524#M804725</link>
      <description>If you are having perl then,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.modperl.com/perl_networking/sample/ch6.html" target="_blank"&gt;http://www.modperl.com/perl_networking/sample/ch6.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Fri, 21 Oct 2005 03:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935524#M804725</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-21T03:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935525#M804726</link>
      <description>Piping scripting with telnet + passwd command:&lt;BR /&gt;&lt;BR /&gt;(&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "muthu" # Telnet Account name&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "muthu" # Telnet Passwd&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "passwd muthu" # Passwd execution&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "muthu" # Old Password&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "muthu12" # New password. Use two alphanumeric character&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "muthu12" # Confirm Passwd.&lt;BR /&gt;sleep 1&lt;BR /&gt;echo "exit 1" # Log out&lt;BR /&gt;) | telnet &lt;HOSTNAME&gt;&lt;BR /&gt;&lt;BR /&gt;# hostname to localhost if you are trying for local machine&lt;BR /&gt;&lt;BR /&gt;Change sleep time based on system response.&lt;BR /&gt;&lt;BR /&gt;hth.&lt;/HOSTNAME&gt;</description>
      <pubDate>Fri, 21 Oct 2005 03:26:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935525#M804726</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-21T03:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935526#M804727</link>
      <description>Hi I have found solution to this with RAC'S Answer</description>
      <pubDate>Fri, 21 Oct 2005 04:20:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935526#M804727</guid>
      <dc:creator>Raisaab</dc:creator>
      <dc:date>2005-10-21T04:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935527#M804728</link>
      <description>I hope you are new comer to this forum. Just view the thread and assign points in the relative reply. If you are not getting the way to assign, refer FAQ section.&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Fri, 21 Oct 2005 04:33:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935527#M804728</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-21T04:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935528#M804729</link>
      <description>Yes I am a new bee here. But I though I assigned point's.&lt;BR /&gt;Anyway's in future i will take care ...&lt;BR /&gt;sorry for the inconvinence ...</description>
      <pubDate>Fri, 21 Oct 2005 05:19:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935528#M804729</guid>
      <dc:creator>Raisaab</dc:creator>
      <dc:date>2005-10-21T05:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935529#M804730</link>
      <description>Vijay,&lt;BR /&gt;&lt;BR /&gt;If you see your thread, no points are assigned correct. Just change points from unassigned to 0-10 and click assign points in the bottom of thread. So that it will assign points.&lt;BR /&gt;&lt;BR /&gt;Keep posting questions.&lt;BR /&gt;-Muthu</description>
      <pubDate>Fri, 21 Oct 2005 05:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935529#M804730</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-10-21T05:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: passwd passing from script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935530#M804731</link>
      <description>Yes, I submitted the points.&lt;BR /&gt;Actually i missed out the buttom submit points, was just assigning it.&lt;BR /&gt;Thanks much,&lt;BR /&gt;Vijay</description>
      <pubDate>Fri, 21 Oct 2005 05:29:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/passwd-passing-from-script/m-p/4935530#M804731</guid>
      <dc:creator>Raisaab</dc:creator>
      <dc:date>2005-10-21T05:29:56Z</dc:date>
    </item>
  </channel>
</rss>

