<?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: Script for password in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817066#M100196</link>
    <description>There are many ways to do it.&lt;BR /&gt;&lt;BR /&gt;1. some expect scripting.&lt;BR /&gt;2. directly pasting the encrypted password in password feild - not good though&lt;BR /&gt;3. If you have centralised password management.&lt;BR /&gt;3. You can use following command to do that.&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/usermod.sam -p "$(echo "1234abcdxy" | /usr/lbin/makekey)" "user_name"&lt;BR /&gt;&lt;BR /&gt;The password will be set as 1234abcd. The password has to be of 8 chars and xy is salt chars used.</description>
    <pubDate>Tue, 04 Jul 2006 07:32:56 GMT</pubDate>
    <dc:creator>RAC_1</dc:creator>
    <dc:date>2006-07-04T07:32:56Z</dc:date>
    <item>
      <title>Script for password</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817064#M100194</link>
      <description>I have 5 servers which are ll i want to change the password through script.&lt;BR /&gt;&lt;BR /&gt;Pls help me how to do</description>
      <pubDate>Tue, 04 Jul 2006 07:23:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817064#M100194</guid>
      <dc:creator>Venkat_33</dc:creator>
      <dc:date>2006-07-04T07:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Script for password</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817065#M100195</link>
      <description>A script to change a password on a server, or a script to change the password on 5 servers at once?&lt;BR /&gt;&lt;BR /&gt;Do you have trusted system?&lt;BR /&gt;&lt;BR /&gt;Andrey</description>
      <pubDate>Tue, 04 Jul 2006 07:26:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817065#M100195</guid>
      <dc:creator>Andrey Tumanov</dc:creator>
      <dc:date>2006-07-04T07:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Script for password</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817066#M100196</link>
      <description>There are many ways to do it.&lt;BR /&gt;&lt;BR /&gt;1. some expect scripting.&lt;BR /&gt;2. directly pasting the encrypted password in password feild - not good though&lt;BR /&gt;3. If you have centralised password management.&lt;BR /&gt;3. You can use following command to do that.&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/usermod.sam -p "$(echo "1234abcdxy" | /usr/lbin/makekey)" "user_name"&lt;BR /&gt;&lt;BR /&gt;The password will be set as 1234abcd. The password has to be of 8 chars and xy is salt chars used.</description>
      <pubDate>Tue, 04 Jul 2006 07:32:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817066#M100196</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2006-07-04T07:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script for password</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817067#M100197</link>
      <description>a script to change the password on 5 servers at once?&lt;BR /&gt;&lt;BR /&gt;i wont like to use SAM because we had 5 servers ( inlcuding aix and linux box)</description>
      <pubDate>Tue, 04 Jul 2006 08:56:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817067#M100197</guid>
      <dc:creator>Venkat_33</dc:creator>
      <dc:date>2006-07-04T08:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script for password</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817068#M100198</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;creating a NIS domain for five servers seems not unreasonable to me.&lt;BR /&gt;I guess searching for 'NIS setup' in this forum will get some matches ...&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 04 Jul 2006 10:03:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817068#M100198</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-07-04T10:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Script for password</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817069#M100199</link>
      <description>i dont have NIS i want a simple script to change password for 5 system which have sameuser account.&lt;BR /&gt;Please help</description>
      <pubDate>Tue, 04 Jul 2006 10:22:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817069#M100199</guid>
      <dc:creator>Venkat_33</dc:creator>
      <dc:date>2006-07-04T10:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Script for password</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817070#M100200</link>
      <description>In that case expect would be the tool of choice for automating the password changes across all the servers that have the same user account(s).&lt;BR /&gt;&lt;BR /&gt;Expect is freeware and it'll run on Unix/Linux systems and can be downloaded from here...&lt;A href="http://expect.nist.gov/" target="_blank"&gt;http://expect.nist.gov/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;~cheers</description>
      <pubDate>Tue, 04 Jul 2006 10:54:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817070#M100200</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2006-07-04T10:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script for password</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817071#M100201</link>
      <description>i need script bcause i am new in linux so pls help</description>
      <pubDate>Wed, 05 Jul 2006 00:54:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817071#M100201</guid>
      <dc:creator>Venkat_33</dc:creator>
      <dc:date>2006-07-05T00:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Script for password</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817072#M100202</link>
      <description>Hi Mr Venkat&lt;BR /&gt;&lt;BR /&gt;Doesn't seem to complicated to me.&lt;BR /&gt;&lt;BR /&gt;If you just keep it simple for a moment,&lt;BR /&gt;disregard security and forget it is a productive system one scenario would be &lt;BR /&gt;something like this:&lt;BR /&gt;&lt;BR /&gt;#!/sbin/bash&lt;BR /&gt;for host in node1, node2, Node3, Node4,Node5&lt;BR /&gt;do&lt;BR /&gt;function logon&lt;BR /&gt;{&lt;BR /&gt;trap INT&lt;BR /&gt;echo root&lt;BR /&gt;sleep 1&lt;BR /&gt;echo $PASSIN&lt;BR /&gt;sleep 2&lt;BR /&gt;echo ls&lt;BR /&gt;stty echo &lt;BR /&gt;&lt;INSERT you="" passwd="" cmd="" here=""&gt;&lt;BR /&gt;echo exit&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;logon | telnet $1&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Naturally there are many other &lt;BR /&gt;ways to achieve the same result.&lt;BR /&gt;&lt;BR /&gt;You could first compare if the entry already&lt;BR /&gt;exists in the passwd file and script that and&lt;BR /&gt;schedule it in background.&lt;BR /&gt;I presume you have enough scripting knowledge to script the interface (if&lt;BR /&gt;you need one)&lt;BR /&gt;&lt;BR /&gt;What security is concerned you could&lt;BR /&gt;tie it down a bit, by creating a dedicated account on each Node for this household task only. With only access to the passwd cmd.&lt;BR /&gt;(But I would protect and except root from &lt;BR /&gt;this altogether, thus only the superuser can&lt;BR /&gt;change the superuser passwd). But this account could change user accounts only.&lt;BR /&gt;That way you can monitor the accounts and&lt;BR /&gt;determine permissions and keep security &lt;BR /&gt;pretty good. &lt;BR /&gt;&lt;BR /&gt;Anyway, just some idea's, sure it can be&lt;BR /&gt;improved upon ...&lt;/INSERT&gt;</description>
      <pubDate>Wed, 05 Jul 2006 01:37:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-password/m-p/3817072#M100202</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2006-07-05T01:37:42Z</dc:date>
    </item>
  </channel>
</rss>

