| Newsgroups |
gmane.user-groups.linux.india.programmers |
| Message-ID |
<[email protected]> |
hi, the best option is that you have to write kernel module.
what you to do is using trace command you to find out the system call made
by passwd command, then
write your wrapper around that system call without changing the
functionality of that system call using the kernel module programming.
Regards,
Santosh
----- Original Message -----
From: "Godbole, Amarendra (GE Consumer & Industrial)"
<[email protected]>
To: <linux-india-programmers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Sent: Tuesday, April 27, 2004 3:50 AM
Subject: [LIP] passwd wrapper
> 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.
>
> Okay, one option is to dig into the code of the
> passwd utility, but I have not much time at hand
> to do that.
>
> Thanks in advance.
>
> Cheers,
> Amar
>
> --
> I used to be an atheist, until I realized I was GOD.
>
>
-------------------------------------------------------
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