<?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: Writing script to modify passwd file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579334#M703103</link>
    <description>to get the values from your /etc/passwd file, you can use a construct like this :&lt;BR /&gt;&lt;BR /&gt;(assumed teh username you want to modify is stored in variable $USER)&lt;BR /&gt;&lt;BR /&gt;REC=`grep ^$USER /etc/passwd`&lt;BR /&gt;&lt;BR /&gt;PWDHASH=`echo $REC|cut -d: -f2`&lt;BR /&gt;UID=`echo $REC|cut -d: -f3`&lt;BR /&gt;GID=`echo $REC|cut -d: -f4`&lt;BR /&gt;GECKOS=`echo $REC|cut -d: -f5`&lt;BR /&gt;HOMEDIR=`echo $REC|cut -d: -f6`&lt;BR /&gt;DEFSHELL=`echo $REC|cut -d: -f7`&lt;BR /&gt;&lt;BR /&gt;then you can modify your record by modifying any of these values and reconstruct it as:&lt;BR /&gt;&lt;BR /&gt;NEWREC=`printf $USER":"$PWDHASH":"$UID":"$GID":$GECKOS:"$HOMEDIR":"$DEFSHELL`&lt;BR /&gt;&lt;BR /&gt;(make sure $GECKOS is inside the double quotes as it may have spaces embedded inside)&lt;BR /&gt;&lt;BR /&gt;then &lt;BR /&gt;&lt;BR /&gt;delete this line out of your /etc/passwd and append the modified version to the bottom as follows:&lt;BR /&gt;&lt;BR /&gt;LINE=`grep -n ^$USER /etc/passwd|cut -d: -f1`&lt;BR /&gt;sed -e "${LINE}d" /etc/passwd &amp;gt; /tmp/passwd.fil&lt;BR /&gt;echo $NEWREC &amp;gt;&amp;gt; /tmp/passwd.fil&lt;BR /&gt;&lt;BR /&gt;then dump the contents of the temporary file to the /etc/passwd&lt;BR /&gt;&lt;BR /&gt;cat /tmp/passwd.fil &amp;gt; /etc/passwd&lt;BR /&gt;&lt;BR /&gt;(do use 'cat' instead of 'mv' or 'cp' as this will preserve the file ownership and permissions of the /etc/passwd keeping you away from headaches in the future)&lt;BR /&gt;</description>
    <pubDate>Mon, 11 Jul 2005 09:57:05 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2005-07-11T09:57:05Z</dc:date>
    <item>
      <title>Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579327#M703096</link>
      <description>Looking for some ideas/suggestions and possibly scripting help for modifications to the passwd file. &lt;BR /&gt;&lt;BR /&gt;At our employer, it is standard practice to make 2 backups of the passwd file before adding/removing/modifying users. Any changes are made to one of the backup copies and then "verified" before replacing the passwd file with the modified version. &lt;BR /&gt;&lt;BR /&gt;We had an incident last week where our lead operator did not make 2 copies and instead removed 70 users from the one backup copy and then copied that to passwd. The net result was that this individual made every excuse in the book and did not accept that they were the one who caused the problem, even though I had a copy of the history file which showed all command typed in from the command prompt since their session began. &lt;BR /&gt;&lt;BR /&gt;Because of this, I was directed to find out if it possible, or if a script exists which would prompt the user, when making changes to the passwd file. For example, a script might be called: passwdchng&lt;BR /&gt;&lt;BR /&gt;When executed, it would prompt for the user id:&lt;BR /&gt;&lt;BR /&gt;Enter user id: &lt;BR /&gt;&lt;BR /&gt;If the user exists, it would then ask if you would like to modify or delete the user. If the user doesn't exist, it will ask you if you would like to add the user. &lt;BR /&gt;&lt;BR /&gt;If you select modify, it will then show the current settings:&lt;BR /&gt;&lt;BR /&gt;1)Password: Displayed as hash (we're not using shadow passwords)&lt;BR /&gt;2)User ID:&lt;BR /&gt;3)Group ID:&lt;BR /&gt;4)User Name/Description: &lt;BR /&gt;5)Home Directory:&lt;BR /&gt;6)Shell:  &lt;BR /&gt;&lt;BR /&gt;You would select a number to change that value. If you select passwd, a routine would run resetting the password to whatever it needs to be and forcing the user to change it upon the next login. &lt;BR /&gt;&lt;BR /&gt;The script would also contain logic that would prevent the enduser from modifying users that do not have a certain group ID. &lt;BR /&gt;&lt;BR /&gt;Let me know your thoughts. Perhaps having them do all this through SAM would be the answer.</description>
      <pubDate>Mon, 11 Jul 2005 07:43:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579327#M703096</guid>
      <dc:creator>Mike Keys</dc:creator>
      <dc:date>2005-07-11T07:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579328#M703097</link>
      <description>Basically what I am looking for is a script version of what SAM is able to do for management of users. Is there anything like this for HPUX?&lt;BR /&gt;&lt;BR /&gt;And what is the deal with the forums? Sometimes I can search and sometimes I can't.</description>
      <pubDate>Mon, 11 Jul 2005 07:54:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579328#M703097</guid>
      <dc:creator>Mike Keys</dc:creator>
      <dc:date>2005-07-11T07:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579329#M703098</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;I don't know of anything standard that will do what you require, but it could be scripted. Does you lead operator have full root access? If so, there isn't anything you can do to force them to follow correct procedures.&lt;BR /&gt;&lt;BR /&gt;Your best bet is to limit their access and use sudo to allow them to run pre-defined (and locked-down) scripts for this (or any other priviledged) task. In the past I have refused to have root access on servers when another group had root access. Its fairly easy to make this case when you have an issue as you described above.&lt;BR /&gt;&lt;BR /&gt;If sam functionality is what you need, but don't want to let them have full access them restricted sam access can be set up.&lt;BR /&gt;&lt;BR /&gt;David</description>
      <pubDate>Mon, 11 Jul 2005 08:02:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579329#M703098</guid>
      <dc:creator>David Child_1</dc:creator>
      <dc:date>2005-07-11T08:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579330#M703099</link>
      <description>Mike I agree with David, you need to limit root access to your operators. then use sudo. I used to work with poweb broker pbrun and pbsu. This software works very well giving users some root ability and also helps you to log who is the user executing specific command. But the only extra work that you need to do is to script a menu with all the functionality. I dont think so is hard if you have some scripting experience.&lt;BR /&gt;&lt;BR /&gt;If you decide to go with power borker I can always help you with the scripts.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Juan</description>
      <pubDate>Mon, 11 Jul 2005 08:09:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579330#M703099</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2005-07-11T08:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579331#M703100</link>
      <description>Juan &amp;amp; David,&lt;BR /&gt;&lt;BR /&gt;I think it makes perfect sense that we look at limiting the operations priviledges. &lt;BR /&gt;&lt;BR /&gt;Juan, please give me more information/website on "power broker",&lt;BR /&gt;&lt;BR /&gt;Mike Keys&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 08:13:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579331#M703100</guid>
      <dc:creator>Mike Keys</dc:creator>
      <dc:date>2005-07-11T08:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579332#M703101</link>
      <description>Mike, &lt;BR /&gt;Here is some links with info about the software&lt;BR /&gt;The company&lt;BR /&gt;&lt;A href="http://www.symark.com/powerbroker.htm" target="_blank"&gt;http://www.symark.com/powerbroker.htm&lt;/A&gt;&lt;BR /&gt;Software installation and config&lt;BR /&gt;&lt;A href="http://www.uidaho.edu/pb/pb27-05.htm#P778_57145" target="_blank"&gt;http://www.uidaho.edu/pb/pb27-05.htm#P778_57145&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.uidaho.edu/pb/pb27-13.htm#P1486_106950" target="_blank"&gt;http://www.uidaho.edu/pb/pb27-13.htm#P1486_106950&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.uidaho.edu/pb/pb27-18.htm#P3949_245086" target="_blank"&gt;http://www.uidaho.edu/pb/pb27-18.htm#P3949_245086&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Take a look and you will see that this software is very helpfull to delegate limited root privileges. Also it keeps tracking of each user steps.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Juan&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 08:38:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579332#M703101</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2005-07-11T08:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579333#M703102</link>
      <description>Thanks.&lt;BR /&gt;&lt;BR /&gt;I see some replies in the forums which use menu-driven scripts written in perl. I also see the 'useradd', 'usermod' and 'userdel' commands that I can use to build by command line syntax. &lt;BR /&gt;&lt;BR /&gt;Since I an very, very new to scripting, how do I pull the values from the /etc/passwd file for a particular user and store in variables?&lt;BR /&gt;&lt;BR /&gt;Basically the structure of the program is as such.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Display Menu&lt;BR /&gt;&lt;BR /&gt;A) Add a new user&lt;BR /&gt;M) Modify an existing user&lt;BR /&gt;R) Remove an existing user&lt;BR /&gt;D) Display this menu&lt;BR /&gt;X) Exit program and logoff&lt;BR /&gt;&lt;BR /&gt;Program is called via sudo to track user and time called.&lt;BR /&gt;&lt;BR /&gt;If A)then&lt;BR /&gt;   Check to see that user does not already exist. If user exists then return message to user and prompt if they would like to Modify or Remove. If Modify or Remvoe is selected at this point, a check should be made to ensure that group ID matches acceptable group ID for which to make changes. Therefore, root and other ID's are protected. The user ID used should be the next user ID available.&lt;BR /&gt;&lt;BR /&gt;If M) or R)&lt;BR /&gt;   Get user info from /etc/passwd file, parsed and diplayed into its component parts displayed as a menu (only for Modify). For Remove, prompt user with an "are you sure" command before executing. For a Modify, allow user to select component to modify. Group ID can't be changed. Password can be reset from here as well (perhaps as option on Main Menu). Display "are you sure" prompt after finished with changes before modifying. &lt;BR /&gt;&lt;BR /&gt;Any suggestions are welcome. &lt;BR /&gt;&lt;BR /&gt;Mike Keys&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 09:15:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579333#M703102</guid>
      <dc:creator>Mike Keys</dc:creator>
      <dc:date>2005-07-11T09:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579334#M703103</link>
      <description>to get the values from your /etc/passwd file, you can use a construct like this :&lt;BR /&gt;&lt;BR /&gt;(assumed teh username you want to modify is stored in variable $USER)&lt;BR /&gt;&lt;BR /&gt;REC=`grep ^$USER /etc/passwd`&lt;BR /&gt;&lt;BR /&gt;PWDHASH=`echo $REC|cut -d: -f2`&lt;BR /&gt;UID=`echo $REC|cut -d: -f3`&lt;BR /&gt;GID=`echo $REC|cut -d: -f4`&lt;BR /&gt;GECKOS=`echo $REC|cut -d: -f5`&lt;BR /&gt;HOMEDIR=`echo $REC|cut -d: -f6`&lt;BR /&gt;DEFSHELL=`echo $REC|cut -d: -f7`&lt;BR /&gt;&lt;BR /&gt;then you can modify your record by modifying any of these values and reconstruct it as:&lt;BR /&gt;&lt;BR /&gt;NEWREC=`printf $USER":"$PWDHASH":"$UID":"$GID":$GECKOS:"$HOMEDIR":"$DEFSHELL`&lt;BR /&gt;&lt;BR /&gt;(make sure $GECKOS is inside the double quotes as it may have spaces embedded inside)&lt;BR /&gt;&lt;BR /&gt;then &lt;BR /&gt;&lt;BR /&gt;delete this line out of your /etc/passwd and append the modified version to the bottom as follows:&lt;BR /&gt;&lt;BR /&gt;LINE=`grep -n ^$USER /etc/passwd|cut -d: -f1`&lt;BR /&gt;sed -e "${LINE}d" /etc/passwd &amp;gt; /tmp/passwd.fil&lt;BR /&gt;echo $NEWREC &amp;gt;&amp;gt; /tmp/passwd.fil&lt;BR /&gt;&lt;BR /&gt;then dump the contents of the temporary file to the /etc/passwd&lt;BR /&gt;&lt;BR /&gt;cat /tmp/passwd.fil &amp;gt; /etc/passwd&lt;BR /&gt;&lt;BR /&gt;(do use 'cat' instead of 'mv' or 'cp' as this will preserve the file ownership and permissions of the /etc/passwd keeping you away from headaches in the future)&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2005 09:57:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579334#M703103</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-11T09:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579335#M703104</link>
      <description>Mel,&lt;BR /&gt;&lt;BR /&gt;Thanks. Big help. &lt;BR /&gt;&lt;BR /&gt;Since this is Perl. How do I do a comparison when modifying a user to ensure that user exists in passwd file?&lt;BR /&gt;&lt;BR /&gt;If ($REC exists) {&lt;BR /&gt;   do something&lt;BR /&gt;{&lt;BR /&gt;elsif ($REC not exist) {&lt;BR /&gt;   print "User not found";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 11 Jul 2005 11:03:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579335#M703104</guid>
      <dc:creator>Mike Keys</dc:creator>
      <dc:date>2005-07-11T11:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579336#M703105</link>
      <description>a quick and dirty menu system for you if you have not done it already :&lt;BR /&gt;&lt;BR /&gt;while true&lt;BR /&gt;do&lt;BR /&gt;clear&lt;BR /&gt;echo "A. Add New User"&lt;BR /&gt;echo "M. Modify an Existing User"&lt;BR /&gt;echo "R. Remove an Existing User"&lt;BR /&gt;echo "D. Display This Menu"&lt;BR /&gt;echo "X. Exit Program and Logoff"&lt;BR /&gt;echo " "&lt;BR /&gt;echo "Please make your selection then hit &lt;ENTER&gt;"&lt;BR /&gt;read s&lt;BR /&gt;case $s in&lt;BR /&gt;  "a"|"A")&lt;BR /&gt;    clear; echo " Adding new user...\n\n" ;; # add new user commands here&lt;BR /&gt;  "m"|"M")&lt;BR /&gt;    clear; echo " Modifying user...\n\n";; # modify user commands here&lt;BR /&gt;  "r"|"R")&lt;BR /&gt;    clear; echo " Removing user...\n\n"&lt;BR /&gt;    echo "do you want to remove the user's home directory and its contents y/[n]?"&lt;BR /&gt;    read yn&lt;BR /&gt;    if [[ $yn = "y" || $yn = "Y" ]]&lt;BR /&gt;    then&lt;BR /&gt;     userdel -r $USER&lt;BR /&gt;    else&lt;BR /&gt;     userdel $USER&lt;BR /&gt;    fi ;;&lt;BR /&gt;  "x"|"X")&lt;BR /&gt;    clear; echo " Exiting Program.."; exit ;;&lt;BR /&gt;  *)&lt;BR /&gt;    # do nothing display the menu again&lt;BR /&gt;    clear;;&lt;BR /&gt;esac&lt;BR /&gt;done&lt;BR /&gt;&lt;/ENTER&gt;</description>
      <pubDate>Mon, 11 Jul 2005 11:04:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579336#M703105</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-11T11:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579337#M703106</link>
      <description>Mel,&lt;BR /&gt;&lt;BR /&gt;Are using a regular shell script? I was starting to write in Perl.</description>
      <pubDate>Mon, 11 Jul 2005 11:25:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579337#M703106</guid>
      <dc:creator>Mike Keys</dc:creator>
      <dc:date>2005-07-11T11:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579338#M703107</link>
      <description>yes it was the standard ksh shell script. I know you can write much more elaborate menu systems using perl and other scripting languages. This is a quick and dirty one just in case you don't feel like writing one yourself now.</description>
      <pubDate>Mon, 11 Jul 2005 11:27:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579338#M703107</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-11T11:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579339#M703108</link>
      <description>I have most of the stub code in place for the Perl menu. I just need to know how to compare.</description>
      <pubDate>Mon, 11 Jul 2005 11:32:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579339#M703108</guid>
      <dc:creator>Mike Keys</dc:creator>
      <dc:date>2005-07-11T11:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579340#M703109</link>
      <description>As I am not well versed in perl, the answer to your question :&lt;BR /&gt;&lt;BR /&gt;"Since this is Perl. How do I do a comparison when modifying a user to ensure that user exists in passwd file?"&lt;BR /&gt;&lt;BR /&gt;in ksh &lt;BR /&gt;(again username is in variable $USER assumption here)&lt;BR /&gt;&lt;BR /&gt;grep ^$USER /etc/passwd; r=${?}&lt;BR /&gt;if [ $r -ne 0 ]&lt;BR /&gt;then&lt;BR /&gt;  echo "$USER not found on this system"&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I think you can call a unix command using exec() command from inside a perl script but details of it eludes me.</description>
      <pubDate>Mon, 11 Jul 2005 11:32:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579340#M703109</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-11T11:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579341#M703110</link>
      <description>Mike, maybe you can use something like this&lt;BR /&gt;&lt;BR /&gt;while ($string =~ m/regex/g) {&lt;BR /&gt;  print "Found '$&amp;amp;'.  Next attempt at character " . pos($string)+1 . "\n";&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope helps.</description>
      <pubDate>Mon, 11 Jul 2005 12:19:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579341#M703110</guid>
      <dc:creator>Juan M Leon</dc:creator>
      <dc:date>2005-07-11T12:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579342#M703111</link>
      <description>Mike,&lt;BR /&gt;&lt;BR /&gt;I'ave a similar script that I wrote a while back for adding/deleting/modifying users. It might be helpful to you or at the very least it could provide a framework on which you can build yours. This script is parameterized and menu-driven. Best of luck!!!</description>
      <pubDate>Tue, 12 Jul 2005 16:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579342#M703111</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-07-12T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Writing script to modify passwd file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579343#M703112</link>
      <description>remsh $i /usr/sam/lbin/usermod.sam -p encrypedpasswordhere usersname &lt;BR /&gt;&lt;BR /&gt;to set their innital password to the above script.&lt;BR /&gt;You can use ssh for a more secure connection.</description>
      <pubDate>Thu, 14 Jul 2005 19:52:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/writing-script-to-modify-passwd-file/m-p/3579343#M703112</guid>
      <dc:creator>generic_1</dc:creator>
      <dc:date>2005-07-14T19:52:44Z</dc:date>
    </item>
  </channel>
</rss>

