Re: [LIP] passwd wrapper

Sandip Bhattacharya <[email protected]>
Newsgroups gmane.user-groups.linux.india.programmers
Organization Puroga Technologies Pvt. LTd.
Message-ID <[email protected]>
Godbole, Amarendra (GE Consumer & Industrial) wrote:
> Hi,
> 
> I have to write a passwd wrapper (my googling 
> efforts have so far returned a blank), to grab 
> the  user's password while he is changing it.
> 
> I'd appreciate if someone points me to the 
> documents which explains how the passwd
> command works, so that I can write a wrapper.
> I have no access to any UNIX related book as of
> now. I need to do this only for one user, `informix' 
> as I have to fill in the JDBC URL with this 
> password.

Why cant you simply ask the user for his password, and set it in the 
system using "passwd --stdin username" (using sudo permissions given to 
your script or somethign similar)?

- Sandip

-- 
Sandip Bhattacharya
sandip (at) puroga.com
Puroga Technologies Pvt. Ltd.
Work: http://www.puroga.com        Home: http://www.sandipb.net

GPG: 51A4 6C57 4BC6 8C82 6A65 AE78 B1A1 2280 A129 0FF3



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.