Searched info on usermod and passswd and couldn't figure it out.
How do I force a user to change password the next time he logs in?
Thanks a lot!
--
Arcady Genkin
I opened up my wallet, and it's full of blood... - GsYDE
George Bonser [EMAIL PROTECTED] writes:
man shadow
Thanks. I still have a question though. Example:
testdummy:mbjdfWfNf6Eto:10710:0:0:7:::
implies that the user's password expires after 0 days. But in practice
this means that the user will have to change his password every day
(time?) he
Arcady Genkin wrote:
Searched info on usermod and passswd and couldn't figure it out.
How do I force a user to change password the next time he logs in?
If you are using shadow passwords (/etc/shadow exists) look at
`man 5 shadow', otherwise look at `man 5 passwd'.
--
Oliver Elphick
George Bonser [EMAIL PROTECTED] writes:
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.
George Bonser [EMAIL PROTECTED] writes:
Sorry to bug you again, but I am still looking for the password change
solution...
The .bash_profile solution works, but then if the user changes his default
shell from bash to smth else, I won't be able to force password change
anymore... Is there any
How about using 'chage'. I think you probably need to play with the -M
and -d switches. BTW chage is in the passwd package.
HTH
Rich
Arcady Genkin wrote:
George Bonser [EMAIL PROTECTED] writes:
Sorry to bug you again, but I am still looking for the password change
solution...
The
6 matches
Mail list logo