LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 04-29-2003, 12:36 PM   #1
fenriswolf
Member
 
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.

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

Rep: Reputation: 64
You could create a script called:
changepw

or similar that calls:
passwd

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
fenriswolf
Member
 
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
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

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


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
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


All times are GMT -5. The time now is 05:19 AM.

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