Results 1 to 5 of 5
Hello
If user password is expired then the request from the user is to provide the same password so how can we resolve....
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-12-2013 #1Just Joined!
- Join Date
- Jun 2012
- Posts
- 16
How to give the same password which expired
Hello
If user password is expired then the request from the user is to provide the same password so how can we resolve.
- 02-12-2013 #2Just Joined!
- Join Date
- Jun 2012
- Posts
- 9
Hi,
First of all this would most likely be a violation of the security rules in your company. Password expiration is there with a reason.
But if you want to go ahead and just unlock his account, do the following:
look for the username of the userCode:vi /etc/passwd
the line will be something like this:
change the value that is in the same place as where 15748 is in the line above. Do NOT change anything else.Code:test:$6$ZFbSDzK0$8vCEBW.iTKx9lfbaTro.S/qAexmt/aYLa8NC8PDSsQP9dtiODTgZtWmkKxHAU8Z/zu5SOR9OyzOymrLvBN5xz1:15748:0:99999:7:::
Your user will now be able to log in with the old password
- 02-12-2013 #3Linux Newbie
- Join Date
- Jan 2013
- Posts
- 103
its should be in /etc/shadow
/etc/shadow format as below
user name :encrypted password : last modified :min change : max change days : warn days : disable days : disable time : reserved
- 02-13-2013 #4
- 02-14-2013 #5
instead of editing the /etc/shadow file manually, I suggest you read the man page for the chage command.
and by runningCode:man chage
to get the current details.Code:passwd -S username
If you set the maxage to -1, you can disable account expiry, or make it larger to postpone the forced change.New to the internet, technical forums, or the hacker / open source community??
Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html
RHCE for RHEL version 5
RHCT for RHEL version 4


Reply With Quote

