Re: Forcing password change for a user
On 29 Apr 1999, Arcady Genkin wrote:
> this means that the user will have to change his password every day
> (time?) he logs in.
> This is not what I needed. I wanted to set a one-time password expiry
> scheme, that would allow me to force a user change password _the first
> time_ he logs in.
>
> Thanks for any input!
Ok I see what you are trying to do.
When you create a user, touch a file in their directory called .newuser
In the .bash_profile or .profile or .cshrc or whatever have the script
check for the existance of this file. If found, it execs the passwd
command and then delete the .newuser file.
This has the advantage of allowing you to touch .newuser (and change the
ownership so the user can delete it without complaint) at any time to
force a password change ... or at least STRONGLY suggest a password
change.
Reply to: