Solved

Change Password

Posted on 2000-02-28
5
408 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 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 Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
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…
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

735 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