SUMMARY: Replacing passwd program

From: Randy Rodgers <randy.rodgers_at_ci.ft-wayne.in.us>
Date: Tue, 18 Aug 1998 14:09:11 -0500

Managers,

My original question:

=================================================

I wish to replace the passwd program with a C
wrapper program. I have rename /usr/bin/passwd
& moved in my C program. When I login to an
account with an expired password the old program
is still executed. When I invoke "passwd" from
the command line, my program is executed.

Can anyone help me with this?

=================================================

I had responses explaining the various links
related to the passwd program:

1) /bin is a sympbolic link to /usr/bin

2) /usr/bin/chfn & /usr/bin/chsh are hard links
  to /usr/bin/passwd.

These did not help my problem.

I called Digital Support & explained how I had
read the following in the Security manual:

"If you try to log in when your password needs
to be changed, the login program calls the
passwd program as part of the login procedure."

I then explained that I had written a C program
to execute the original passwd program, then
perform further processing.

It turns out that the password changing
performed in the login program is built in. I
was advised to call either a script or C program
from either:

1) /etc/profile
   gets execute automatically at login)

2) .dtprofile

I added an option to my C program to check for
the password just being successfully changed &
called it from /etc/profile. This resolve my
problem.


[=================================
[ Randy Rodgers
[ rrodgers_at_ci.ft-wayne.in.us
[ Senior Systems Programmer
[ Allen County/City of Fort Wayne
[ Information Systems
[ (219)427-5727
[=================================
Received on Tue Aug 18 1998 - 19:17:26 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT