Solved

Change Password

Posted on 2000-02-28
5
399 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
  • 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 100 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Let’s list some of the technologies that enable smooth teleworking. 
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now