LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   users who have never changed their password from /etc/sha (https://www.linuxquestions.org/questions/programming-9/users-who-have-never-changed-their-password-from-etc-sha-881221/)

catalint 05-17-2011 10:09 AM

users who have never changed their password from /etc/sha
 
I need to create a script that returns a list of the users who have never changed their password from /etc/shadow.
As I know on linux there is a command "chage" used for find last password change. Any idea about solaris command?

Thanks.

Regards,
Catalin

Chirel 05-18-2011 08:17 AM

Hi,

In Solaris the password last change date is the third field of /etc/shadow, and it's expressed in days since 1/1/1970.

You can also use the following command to get the age of a user password
Code:

passwd -s <username>

Hope this will help.


All times are GMT -5. The time now is 06:50 PM.