* SUMMARY: Replacing passwd program
@ 1998-08-18 19:09 Randy Rodgers
0 siblings, 0 replies; only message in thread
From: Randy Rodgers @ 1998-08-18 19:09 UTC (permalink / raw)
To: tru64-unix-managers
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@ci.ft-wayne.in.us
[ Senior Systems Programmer
[ Allen County/City of Fort Wayne
[ Information Systems
[ (219)427-5727
[=================================
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1998-08-18 19:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-18 19:09 SUMMARY: Replacing passwd program Randy Rodgers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox