LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Account expires (https://www.linuxquestions.org/questions/linux-newbie-8/account-expires-864893/)

maobin 02-24-2011 09:27 PM

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.

frankbell 02-24-2011 10:06 PM

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.

maobin 02-24-2011 11:21 PM

Quote:

Originally Posted by frankbell (Post 4270426)
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?

sag47 02-25-2011 08:23 AM

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.


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