LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 10-18-2002, 03:13 AM   #1
geekgrl
LQ Newbie
 
Registered: Nov 2001
Location: Brisbane, Australia
Distribution: mandrake
Posts: 20

Rep: Reputation: 0
Question User login expiry date?


I know how to create users and apply expiration dates to those logins.
I also know how to modify those expiration dates.

But how do I find out what the expiration date for a given user login is?
 
Old 10-18-2002, 05:38 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
chage -l <username>
 
Old 10-20-2002, 06:39 PM   #3
geekgrl
LQ Newbie
 
Registered: Nov 2001
Location: Brisbane, Australia
Distribution: mandrake
Posts: 20

Original Poster
Rep: Reputation: 0
Damn, thats a weird arse name for a program, even by *nix standards.
And how on earth would I have figured that one out on my own!?

thanks unSpawn.
Quote:
Originally posted by unSpawn
chage -l <username>
 
Old 10-21-2002, 01:48 AM   #4
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 45
How you could have figured that out?
Code:
[root@markus root]# apropos expiry
chage                (1)  - change user password expiry information
Wondering what apropros is?
Quote:
NAME
apropos - search the whatis database for strings

SYNOPSIS
apropos keyword ...

DESCRIPTION
apropos searches a set of database files containing short
descriptions of system commands for keywords and displays
the result on the standard output.

SEE ALSO
whatis(1), man(1).

Last edited by markus1982; 10-21-2002 at 01:49 AM.
 
Old 10-21-2002, 02:02 AM   #5
geekgrl
LQ Newbie
 
Registered: Nov 2001
Location: Brisbane, Australia
Distribution: mandrake
Posts: 20

Original Poster
Rep: Reputation: 0
like I'd have thought I using apropos? I've never even heard of it.
newbie here...
Quote:
Originally posted by markus1982
Code:
[root@markus root]# apropos expiry
chage                (1)  - change user password expiry information
 
Old 10-21-2002, 02:25 AM   #6
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 45
Well at least now you know this powerful command ... it helped me out like a damn lot already so

Nice to see a geek girl here BTW
 
Old 10-21-2002, 02:36 AM   #7
geekgrl
LQ Newbie
 
Registered: Nov 2001
Location: Brisbane, Australia
Distribution: mandrake
Posts: 20

Original Poster
Rep: Reputation: 0
yes. we're a rare breed.
Quote:
Originally posted by markus1982

Nice to see a geek girl here BTW
 
Old 07-04-2011, 06:08 AM   #8
rudydark
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Rep: Reputation: 1
Greetings!

Sorry to add this on a quite ancient thread but it can be helpful. (And yet it is in the top hits on the search engines. So could be useful.)
Just good to know that on recent linux systems there is a shadow file and there is the last number. (Before the last ":" separator.) It is the number of days since 1970.jan.01 when the account is going to be expired. The preceding number is the number of days for the grace period in days for disabling the account. (The curious reader can find further useful info on the other relevant fields of the shadow file now on.)

(So - If you back up the shadow file you back up the expiry dates too. Other hand if there is a user who can read the shadow file you can create a script to find out the expiry date and even if it exists.)

Other hand: Many Thanks markus1982 for the apropos command. And Best Wishes for geekgrl asking for it! Best Wishes for You two!
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto Change Date on copy to user folder mariusak Linux - General 4 05-28-2005 06:42 PM
unable to login due to login expiry niiha Programming 2 09-02-2004 10:50 AM
Crazy blank dialog boxes and windows at login. Can't login as user soren625 Linux - General 2 08-11-2004 06:30 AM
Last login time/date for users barbar4854 Linux - General 2 03-03-2004 01:30 PM
User activity on a given date twantrd Linux - General 0 12-13-2003 02:34 PM


All times are GMT -5. The time now is 11:47 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