Step 1:
[root@UVWX ~]# chage -l oracle
Last password change : Mar 09, 2017
Password expires : Jun 07, 2017
Password inactive : never
Account expires : never
Minimum number of days between password change : 1
Maximum number of days between password change : 90
Number of days of warning before password expires : 7
Step 2: (Same Password)
[root@UVWX ~]# passwd oracle
Changing password for user oracle.
You can now choose the new password or passphrase.
A good password should be a mix of upper and lower case letters,
digits, and other characters. You can use a 5 character long
password.
A passphrase should be of at least 3 words, 5 to 40 characters
long, and contain enough different characters.
Alternatively, if no one else can see your terminal now, you can
pick this as your password: "awful&serial&Dutch".
Enter new password:
Re-type new password:
passwd: all authentication tokens updated successfully.
Step 3:
[root@UVWX ~]# chage -M 365 oracle ============> This is for 365 days extension
[root@UVWX ~]# chage -l oracle
Last password change : Jun 14, 2017
Password expires : Jun 14, 2018
Password inactive : never
Account expires : never
Minimum number of days between password change : 1
Maximum number of days between password change : 365
Number of days of warning before password expires : 7
If it is for Never Expire
===============
Step 4:
[root@UVWX ~]# chage -M 9999 oracle ============> This is for Never Expire mode
[root@UVWX ~]# chage -l oracle
Last password change : Jun 14, 2017
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : never
Maximum number of days between password change : never
Number of days of warning before password expires : never
No comments:
Post a Comment