Typically organizations implement periodic password expire policy to harden the security. If you want to know when your password is going to expire by yourself, the command “chage” can give you the information. This command is actually meant for super user (root user). However a normal will be able to retrieve information about himself if not about other users.

Use the following command to information about your password.

[neo@techpulp ~]# chage -l neo
Last password change                                    : Jun 20, 2010
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
[neo@techpulp ~]#

From the output, you can see that my password never expires. Let us examine password information of other user whose password expires for every 60 days. Of course, you need to have root privileges to do that. ;o)

[neo@techpulp ~]# su

Password:

[root@techpulp ~]# chage -l liz
Last password change                                    : Aug 25, 2010
Password expires                                        : Oct 24, 2010
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : 60
Number of days of warning before password expires       : 7
[root@techpulp ~]#