Solved

Web Interface to change password

Posted on 1998-11-25
4
202 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 50 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

707 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