LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-24-2011, 09:27 PM   #1
maobin
Member
 
Registered: Feb 2011
Posts: 42

Rep: Reputation: 0
Account expires


Hi,
I would like to know what does the Account Expires when I run chage -l means? and what value I can set to it?

I cant find anything on it in man.
 
Old 02-24-2011, 10:06 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
http://unixhelp.ed.ac.uk/CGI/man-cgi?chage+1

chage -l means "list account expiration information." The -l switch does not change anything; it merely displays information.

When I do chage -l [my user name] on this computer, I get

Code:
Last password change					: [date]
Password expires					: never
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 0
Maximum number of days between password change		: 99999
Number of days of warning before password expires	: 7

User can use chage -l to see how long his account is valid. Only root can use the other chage switches.
 
Old 02-24-2011, 11:21 PM   #3
maobin
Member
 
Registered: Feb 2011
Posts: 42

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by frankbell View Post
http://unixhelp.ed.ac.uk/CGI/man-cgi?chage+1

chage -l means "list account expiration information." The -l switch does not change anything; it merely displays information.

When I do chage -l [my user name] on this computer, I get

Code:
Last password change					: [date]
Password expires					: never
Password inactive					: never
Account expires						: never
Minimum number of days between password change		: 0
Maximum number of days between password change		: 99999
Number of days of warning before password expires	: 7

User can use chage -l to see how long his account is valid. Only root can use the other chage switches.
what i wanna know is what does "Account expires" means. Is it the date the account expires?
 
Old 02-25-2011, 08:23 AM   #4
sag47
Senior Member
 
Registered: Sep 2009
Location: Raleigh, NC
Distribution: Ubuntu, PopOS, Raspbian
Posts: 1,899
Blog Entries: 36

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
It can either be the date the account expires or the number of days until it expires.

Expires meaning the user will no longer be able to log into the machine.

Last edited by sag47; 02-25-2011 at 08:34 AM.
 
  


Reply



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
cron reporting user account expired, chage -l shows it never expires? kschmitt Linux - Server 5 01-06-2010 08:18 AM
Iptables rule that expires after set time? dissident85 Linux - Networking 2 12-10-2009 05:24 AM
Password expires at GMT not local time philneil Linux - Server 2 06-15-2009 06:12 PM
LXer: 'Expires' website speed boost LXer Syndicated Linux News 0 12-27-2006 12:54 AM
When account expires user still receives email ganninu Linux - Newbie 3 08-01-2003 05:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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