Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Change Password

Posted on 2000-02-28
5
Medium Priority
?
412 Views
Last Modified: 2013-12-23
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?
0
Comment
Question by:afpcos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2565994
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
 
LVL 2

Author Comment

by:afpcos
ID: 2570522
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
 

Expert Comment

by:vrmuds
ID: 2570564
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
 
LVL 40

Accepted Solution

by:
jlevie earned 300 total points
ID: 2570885
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
 
LVL 2

Author Comment

by:afpcos
ID: 2576236
Thank you...
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Make the most of your online learning experience.
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question