Operating System - HP-UX
1832983 Members
2868 Online
110048 Solutions
New Discussion

Re: ERROR MSG REGARDING PAM

 
Donna Powell
Advisor

ERROR MSG REGARDING PAM

I am running this in a script to have the system automatically remsh from one box to another so a user can change their passwd on all boxes at one time. See script below:

sys=`cat $dir/passwdchng | grep -v "^#"`
{
for aa in $sys
do
bb=`echo $aa | tr '[a-z]' '[A-Z]'`
echo " "
clear
print "CHANGING PASSWORD ON $bb FOR $name"
sleep 2
echo $bb
remsh $bb /usr/bin/passwd ${name}
done
}

When this is executed, I get the following error message.

Changing passwd for dtest
pam_chauthtok: System error

What am I doing wrong??

Second problem:
If I put a ; between the remsh and the passwd word command it will remsh, then I have to type the word exit, then it will prompt me to change the password

HELP!!
1 REPLY 1
harry d brown jr
Honored Contributor

Re: ERROR MSG REGARDING PAM

"""What am I doing wrong??"""

You aren't using NIS+

Also, have a look at http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x67677bb04b5cd611abdb0090277a778c,00.html

and search on "remsh passwd"

live free or die
harry
Live Free or Die