LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Change password (https://www.linuxquestions.org/questions/linux-general-1/change-password-99662/)

ust 10-02-2003 10:55 PM

Change password
 
I have post this question previously, but I can't get the responses , it may because my question is not clearly stated.

I just want to have a suggestion what is the best way to force user to change password regularly, I tried to use the command "chage", it has great problem , it don't allow two or above users to change password at the same time ,
my command is
# chage -d0 userid1
# chage -d0 userid2
But when userid1 is changing the password, then userid2 can't change
the password at the same time,
the below is the error :
login: user2
it will hold at the below screen ,
You are required to change your password immediately (root enforced)

I also tried "passwd -e / -x /-M /-W" , but all are not work to expire the password and send the message to the user .

I do think forcing user to change password is a very common action in the company , could suggest what is the best method to do it ? Thx in advance.

jayakrishnan 10-03-2003 07:32 AM

u can use the usermod coomand for this.

try the man page of the usermod command

trickykid 10-03-2003 08:17 AM

Everyone please respond to this thread, his original as this is a double post: http://www.linuxquestions.org/questi...threadid=99727

In the future ust, if you need to make changes or clarify your question, don't double post or post it elsewhere, that's against the rules. You can either edit your original post by pushing the <EDIT> button next to it or just simply reply to it again.

This thread being closed as its against our rules to start the same discussion in more than one forum. If you feel this is unecessary, feel free to email me or the site admin in this decision.

Regards.


All times are GMT -5. The time now is 08:25 AM.