Change Password

I am running on Sun Solaris 7.5.

I am looking for a scrip that will accept the user name, old password, and new password and change the users password.

Can any one help?
LVL 2
afpcosAsked:
Who is Participating?
 
jlevieCommented:
You need to add the path to where the tcl/tk shared libs are to your LD_LIBRARY_PATH. Most likely they went into /usr/local/lib ("ls /usr/local/lib" will tell), so you'd:

for sh, ksh, bash use:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH

and for csh,tcsh:
setenv LD_LIBRARY_PATH {$LD_LIBRARY_PATH}:/usr/local/lib
0
 
jlevieCommented:
Get and install expect (http://expect.nist.gov/), there are some password tools in the expect examples that will do what you need. A simple script won't do it because of the interactive nature of passwd.
0
 
afpcosAuthor Commented:
jlevie

Thank you for the lead.

I downloaded and installed tcl, tk, and expect.

When I try to run the example
chess.exp
I get the following message

dynamic linker : tclsh8.3 : error opening libtcl8.3.so

Can you help me with this...

I will increase the points if you can.

If not I will accept as is.
0
 
vrmudsCommented:
Do a
'find / -name libtcl8.3.so -print'
and tell me the directory it's listed in and give me a printout of 'env'.
0
 
afpcosAuthor Commented:
Thank you...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.