Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
04-29-2003, 12:36 PM
|
#1
|
Member
Registered: Jul 2001
Location: Boston
Distribution: Slack, SuSe, Debian
Posts: 30
Rep:
|
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
|
|
|
04-29-2003, 01:12 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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
|
|
|
04-29-2003, 01:32 PM
|
#3
|
Member
Registered: Jul 2001
Location: Boston
Distribution: Slack, SuSe, Debian
Posts: 30
Original Poster
Rep:
|
thanks...but I need to check if someone ALREADY changed their PW...eeks..
|
|
|
04-29-2003, 09:01 PM
|
#4
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
Look at field 3 in /etc/shadow.
|
|
|
All times are GMT -5. The time now is 06:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|