Register a domain and help support LQ
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-17-2011, 11:09 AM   #1
LQ Newbie
Registered: May 2011
Posts: 7

Rep: Reputation: 0
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?


Old 05-18-2011, 09:17 AM   #2
Registered: Nov 2009
Posts: 55

Rep: Reputation: 19

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
passwd -s <username>

Hope this will help.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Off-the-Record plugin, SHA-1 or SHA-2? madbullet Linux - Security 1 06-21-2010 10:28 AM
[SOLVED] Installed newest Ubuntu setting a weak password. Changed password now buggered? lugoteehalt Ubuntu 1 05-29-2010 10:51 PM
root password changed lemon09 Linux - Newbie 8 08-18-2009 05:50 AM
Help Root password changed!!! UmneyDurak Fedora 4 09-28-2004 02:47 PM
Allright, changed root password and questions about adding users RIOMX Linux - Newbie 2 10-30-2003 04:28 PM

All times are GMT -5. The time now is 02:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration