<?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: password from command line in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484446#M213816</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If the users already exist then&lt;BR /&gt;&lt;BR /&gt;#cat /etc/passwd |awk -F: '{print $1}' &amp;gt; file&lt;BR /&gt;&lt;BR /&gt;for i in 'cat file'&lt;BR /&gt;do&lt;BR /&gt;passwd $i&lt;BR /&gt;done</description>
    <pubDate>Mon, 14 Feb 2005 00:36:06 GMT</pubDate>
    <dc:creator>Ravi_8</dc:creator>
    <dc:date>2005-02-14T00:36:06Z</dc:date>
    <item>
      <title>password from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484441#M213811</link>
      <description>How can i cahnge password of diffreent user from command line in HP-UX 11i. &lt;BR /&gt;&lt;BR /&gt;ie&lt;BR /&gt;&lt;BR /&gt;passwd user1 password&lt;BR /&gt;passwd user2 password</description>
      <pubDate>Sun, 13 Feb 2005 05:52:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484441#M213811</guid>
      <dc:creator>M. Tariq Ayub</dc:creator>
      <dc:date>2005-02-13T05:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: password from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484442#M213812</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you have to be logged as root to change password of other users. &lt;BR /&gt;syntax is:&lt;BR /&gt;passwd user1&lt;BR /&gt;and system will ask you for new password&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 13 Feb 2005 07:00:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484442#M213812</guid>
      <dc:creator>Slawomir Gora</dc:creator>
      <dc:date>2005-02-13T07:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: password from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484443#M213813</link>
      <description>procedure is -&lt;BR /&gt;&lt;BR /&gt;su - root&lt;BR /&gt;passwd user&lt;BR /&gt;passwd -f user (force's the user to change passwd)&lt;BR /&gt;&lt;BR /&gt;if your system is trusted you can reset the account and password by typing&lt;BR /&gt;&lt;BR /&gt;/usr/lbin/modprpw -x user&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 13 Feb 2005 08:45:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484443#M213813</guid>
      <dc:creator>lawrenzo</dc:creator>
      <dc:date>2005-02-13T08:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: password from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484444#M213814</link>
      <description>I want to specify the new password from the command line. My system is not trusted. I need to cahnge 500 user password.</description>
      <pubDate>Mon, 14 Feb 2005 00:05:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484444#M213814</guid>
      <dc:creator>M. Tariq Ayub</dc:creator>
      <dc:date>2005-02-14T00:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: password from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484445#M213815</link>
      <description>You should take a look at using Expect to script this.&lt;BR /&gt;&lt;BR /&gt;There is really no other way that I know of via the shell to do this.</description>
      <pubDate>Mon, 14 Feb 2005 00:08:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484445#M213815</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2005-02-14T00:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: password from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484446#M213816</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If the users already exist then&lt;BR /&gt;&lt;BR /&gt;#cat /etc/passwd |awk -F: '{print $1}' &amp;gt; file&lt;BR /&gt;&lt;BR /&gt;for i in 'cat file'&lt;BR /&gt;do&lt;BR /&gt;passwd $i&lt;BR /&gt;done</description>
      <pubDate>Mon, 14 Feb 2005 00:36:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484446#M213816</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2005-02-14T00:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: password from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484447#M213817</link>
      <description>i want to provide the password by myself</description>
      <pubDate>Mon, 14 Feb 2005 00:39:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484447#M213817</guid>
      <dc:creator>M. Tariq Ayub</dc:creator>
      <dc:date>2005-02-14T00:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: password from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484448#M213818</link>
      <description>Hello Tarik,&lt;BR /&gt;&lt;BR /&gt;You can use this command, and note that even if /usr/sam/lbin/useradd.sam is a symbolic link to /usr/sbin/useradd, you cannot use this last command.&lt;BR /&gt;&lt;BR /&gt;/usr/sam/lbin/useradd.sam -g users -d /home/username -c "comment of user" -s /usr/bin/ksh -p pass_of_user -o -u 104 user_name&lt;BR /&gt;&lt;BR /&gt;Note the -p option, which with you can precise the password, but the problem is that exactely the word given will be saved on the passwd file (ie: not encrypted).&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2005 05:41:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484448#M213818</guid>
      <dc:creator>hp admin</dc:creator>
      <dc:date>2005-02-14T05:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: password from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484449#M213819</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Like Patrick say, you must use expect. With Expect you can 'convert' interactive command like passwd to 'automatic'.&lt;BR /&gt;&lt;BR /&gt;Rgds &lt;BR /&gt;JMB</description>
      <pubDate>Mon, 14 Feb 2005 07:55:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484449#M213819</guid>
      <dc:creator>BONNAFOUS Jean Marc</dc:creator>
      <dc:date>2005-02-14T07:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: password from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484450#M213820</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;And make sure that if you script the "passwordchanger.ksh" you keep the script with passwords in a safe place with filepermissions that only root can see its content and change it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bob</description>
      <pubDate>Mon, 14 Feb 2005 09:45:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484450#M213820</guid>
      <dc:creator>B. Hulst</dc:creator>
      <dc:date>2005-02-14T09:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: password from command line</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484451#M213821</link>
      <description>The easist method is to use Perl. You can use the getpwent() function to read each entry, call the crypt() function to create the new passwd hash and then write the entry out to another file. When you are finished copy the new file to /etc/passwed and you are set. &lt;BR /&gt;</description>
      <pubDate>Mon, 14 Feb 2005 10:14:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/password-from-command-line/m-p/3484451#M213821</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-02-14T10:14:14Z</dc:date>
    </item>
  </channel>
</rss>

