From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078718211786.tru64-unix-managers.marc@archive.invalid> From: Randy Rodgers Date: Tue, 18 Aug 1998 19:09:11 +0000 To: tru64-unix-managers Subject: SUMMARY: Replacing passwd program X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078718211786 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 [=================================