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? |
chage -l <username>
|
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:
|
How you could have figured that out?
Code:
[root@markus root]# apropos expiry Quote:
|
like I'd have thought I using apropos? I've never even heard of it.
newbie here... Quote:
|
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 ;) |
yes. we're a rare breed. :cool:
Quote:
|
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! |
All times are GMT -5. The time now is 01:19 PM. |