Change password of a user:

#passwd oracle

Change root user password:

#passwd

View password expiry information for a user:

[root@xxx /]# chage -l oracle
Last password change     : Jun 17, 2015
Password expires     : never
Password inactive     : never
Account expires      : never
Minimum number of days between password change  : 0
Maximum number of days between password change  : 99999
Number of days of warning before password expires : 7

 

Advertisements