tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Randy Rodgers <randy.rodgers () ci ! ft-wayne ! in ! us>
To: tru64-unix-managers
Subject: SUMMARY: Replacing passwd program
Date: Tue, 18 Aug 1998 19:09:11 +0000	[thread overview]
Message-ID: <96078718211786.tru64-unix-managers.marc@archive.invalid> (raw)

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
[=================================

                 reply	other threads:[~1998-08-18 19:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox