Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 04-29-2003, 12:36 PM   #1
Registered: Jul 2001
Location: Boston
Distribution: Slack, SuSe, Debian
Posts: 30

Rep: Reputation: 15
Check if user has changed PW

Is there any way I can do this? The pw is not set to expire, so I cant just look at the expiration date and trace it back.

Old 04-29-2003, 01:12 PM   #2
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
You could create a script called:

or similar that calls:

Then if it exits with "0" then you can:
echo -n user USERNAME changed their password >> /etc/passcheck
date >> /etc/passcheck
Old 04-29-2003, 01:32 PM   #3
Registered: Jul 2001
Location: Boston
Distribution: Slack, SuSe, Debian
Posts: 30

Original Poster
Rep: Reputation: 15
thanks...but I need to check if someone ALREADY changed their PW...eeks..
Old 04-29-2003, 09:01 PM   #4
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Look at field 3 in /etc/shadow.


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
Check user login log Echo Kilo Linux - Newbie 3 12-15-2004 03:49 PM
running scripts as changed user rammya Linux - Software 2 04-07-2004 11:42 PM
check user processes macie Linux - General 4 11-09-2003 11:57 AM
How can user names be changed? petercool LQ Suggestions & Feedback 4 05-19-2003 08:59 AM
user comand prompt changed - don't know why sadmac Linux - Newbie 2 04-24-2003 12:40 AM > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:53 PM.

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
Open Source Consulting | Domain Registration