?
Solved

Web Interface to change password

Posted on 1998-11-25
4
Medium Priority
?
203 Views
Last Modified: 2013-12-25
Can anyone show me how to write a program to change a Unix (Solaris) Password using web interface??
0
Comment
Question by:kachan
[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
4 Comments
 
LVL 1

Accepted Solution

by:
squimph earned 200 total points
ID: 1829787
The easiest way seems to be to use Expect, a scripting language designed to talk to interactive programs like passwd. Using Expect to change passwords is a whole lot easier than writing an interface to PAM on Solaris.

In fact, in the Expect tarball is a demo CGI script and html form (passwd.html and passwd.cgi) that uses 'su' to change a user's password. It's very basic but works... and doesn't even need to be set UID to run.

Expect requires Tcl, another scripting language, but it can also be controlled via Perl and other languages.

Grab Expect from http://expect.nist.gov/

Beware that if your users are connecting across the Internet, a password change CGI should be run from an SSL web server to prevent outsiders from sniffing passwords when they are transmitted.
0
 

Author Comment

by:kachan
ID: 1829788
Your info is very helpful. BTW, I ran passwd to change password in solaris and it didn't ask me for the old password to confirm my identity... Is there anyway I can do that?
0
 

Expert Comment

by:inkumc
ID: 1829789
Kachan--
 you quote:
I ran passwd to change password in solaris and it didn't ask me for the old password to confirm my identity... Is there anyway I can do that?
--Yes it didn't asked you for the old passwd because you log on as as a root...so go ahead and change the passwd and everything should go ok for you.
0
 

Author Comment

by:kachan
ID: 1829790
Many Thanks for your comments. That's exactly what I need. Thanks again!
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

770 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