* Re: Program to change password upon login
1997-01-14 5:00 Program to change password upon login David Shrewsbury
@ 1997-01-14 5:00 ` John Pezzano
1997-01-15 5:00 ` Thomas H. Ptacek
1997-01-14 5:00 ` Thomas H. Ptacek
` (3 subsequent siblings)
4 siblings, 1 reply; 7+ messages in thread
From: John Pezzano @ 1997-01-14 5:00 UTC (permalink / raw)
David Shrewsbury <shrewsbu@niehs.nih.gov> wrote:
:I need a program that will change a new unix user's
:password when they first login. It needs to work with
:Digital Unix 3.2g. Does anyone know of such a program
:and where to get it? Ideally, since these will only be
:POP users, it would just change their password and not
:let them login. Is this even possible?
Possibly making their login shell be the passwd program?
Do an "exec passwd" in their .profile/.cshrc?
--
johnp@atl.hp.com
HP TIS
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Program to change password upon login
1997-01-14 5:00 ` John Pezzano
@ 1997-01-15 5:00 ` Thomas H. Ptacek
0 siblings, 0 replies; 7+ messages in thread
From: Thomas H. Ptacek @ 1997-01-15 5:00 UTC (permalink / raw)
Tue, 14 Jan 1997 22:44:38 GMT johnp@atl.hp.com:
>Possibly making their login shell be the passwd program?
Now they can change their password, and do nothing else. =)
>Do an "exec passwd" in their .profile/.cshrc?
Dependant on the shell used, and potentially avoidable.
--
----------------
Thomas Ptacek at EnterAct, L.L.C., Chicago, IL [tqbf@enteract.com]
----------------
exit(main(kfp->kargc, argv, environ));
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Program to change password upon login
1997-01-14 5:00 Program to change password upon login David Shrewsbury
1997-01-14 5:00 ` John Pezzano
@ 1997-01-14 5:00 ` Thomas H. Ptacek
1997-01-15 5:00 ` Frank Sweetser
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Thomas H. Ptacek @ 1997-01-14 5:00 UTC (permalink / raw)
Tue, 14 Jan 1997 11:22:28 -0500 shrewsbu@niehs.nih.gov:
>I need a program that will change a new unix user's
>password when they first login. It needs to work with
I don't know of anything that's already available right now, but this is a
fairly trivial thing to write. Assuming you want users to change passwords
interactively (and not just get assigned a different password), this is as
simple as setting the user's shell to a program that forks and execs
passwd(1), and then execs the user's default shell.
Be more specific as to what you want to have happen.
----------------
Thomas Ptacek at EnterAct, L.L.C., Chicago, IL [tqbf@enteract.com]
----------------
exit(main(kfp->kargc, argv, environ));
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Program to change password upon login
1997-01-14 5:00 Program to change password upon login David Shrewsbury
1997-01-14 5:00 ` John Pezzano
1997-01-14 5:00 ` Thomas H. Ptacek
@ 1997-01-15 5:00 ` Frank Sweetser
1997-01-15 5:00 ` Jim Foster
1997-01-15 5:00 ` Marc SCHAEFER
4 siblings, 0 replies; 7+ messages in thread
From: Frank Sweetser @ 1997-01-15 5:00 UTC (permalink / raw)
David Shrewsbury (shrewsbu@niehs.nih.gov) wrote:
: I need a program that will change a new unix user's
: password when they first login. It needs to work with
: Digital Unix 3.2g. Does anyone know of such a program
: and where to get it? Ideally, since these will only be
: POP users, it would just change their password and not
: let them login. Is this even possible?
Check the man page for passwd on your system. Some versions support
something like "passwd -someoption username", and the next time the
user logs in, (s)he will be forced to change their password before
their shell is started.
--
----------------------------------------------------------------------
| Frank Sweetser | rasmusin@wpi.edu |
----------------------------------------------------------------------
| There's no problem so big it can't be solved by killing off the |
| user's account, deleting all their files, and reporting their REAL |
| earnings to the IRS. -bofh |
----------------------------------------------------------------------
| My pgp key's at rasmusin@paramount.res.wpi.edu |
----------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Program to change password upon login
1997-01-14 5:00 Program to change password upon login David Shrewsbury
` (2 preceding siblings ...)
1997-01-15 5:00 ` Frank Sweetser
@ 1997-01-15 5:00 ` Jim Foster
1997-01-15 5:00 ` Marc SCHAEFER
4 siblings, 0 replies; 7+ messages in thread
From: Jim Foster @ 1997-01-15 5:00 UTC (permalink / raw)
On Tue, 14 Jan 1997, David Shrewsbury wrote:
> I need a program that will change a new unix user's
> password when they first login. It needs to work with
> Digital Unix 3.2g. Does anyone know of such a program
> and where to get it? Ideally, since these will only be
> POP users, it would just change their password and not
> let them login. Is this even possible?
>
>
> -David
> (shrewsbu@niehs.nih.gov)
This is a joke right?
----
Jim Foster / Darkcyde | PGP Fingerprint: BF210D318186D715 | [detached]
<darkcyde@duncan.nac.net> | Finger for Key.. 2B994D56E1B4AE70 | life:~$ exit
"I never thought you'd leave, and pass the chance that we had by,
I always did believe, that we'd be together all our lives..."
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Program to change password upon login
1997-01-14 5:00 Program to change password upon login David Shrewsbury
` (3 preceding siblings ...)
1997-01-15 5:00 ` Jim Foster
@ 1997-01-15 5:00 ` Marc SCHAEFER
4 siblings, 0 replies; 7+ messages in thread
From: Marc SCHAEFER @ 1997-01-15 5:00 UTC (permalink / raw)
In article <slrn5dnsfb.hcv.tqbf@char-star.rdist.org>,
tqbf@char-star.rdist.org (Thomas H. Ptacek) writes:
>>I need a program that will change a new unix user's
>>password when they first login. It needs to work with
>
>I don't know of anything that's already available right now, but this is a
To my knowledge, the GNU shadow suite supports setting of minimum,
maximum and delay to password change, and if you set to zero the delay
you get a password change prompt at next login.
^ permalink raw reply [flat|nested] 7+ messages in thread