LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 05-17-2011, 10:09 AM   #1
catalint
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?

Thanks.

Regards,
Catalin
 
Old 05-18-2011, 08:17 AM   #2
Chirel
Member
 
Registered: Nov 2009
Posts: 55

Rep: Reputation: 19
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.
 
  


Reply


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 09:28 AM
[SOLVED] Installed newest Ubuntu setting a weak password. Changed password now buggered? lugoteehalt Ubuntu 1 05-29-2010 09:51 PM
root password changed lemon09 Linux - Newbie 8 08-18-2009 04:50 AM
Help Root password changed!!! UmneyDurak Fedora 4 09-28-2004 01:47 PM
Allright, changed root password and questions about adding users RIOMX Linux - Newbie 2 10-30-2003 03:28 PM


All times are GMT -5. The time now is 04:36 PM.

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