Solved

Change Password

Posted on 2000-02-28
5
406 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Don’t let your business fall victim to the coming apocalypse – use our Survival Guide for the Fax Apocalypse to identify the risks and signs of zombie fax activities at your business.
For many of us, the  holiday season kindles the natural urge to give back to our friends, family members and communities. While it's easy for friends to notice the impact of such deeds, understanding the contributions of businesses and enterprises i…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

776 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