LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Setting and checking the expiration date of a user (https://www.linuxquestions.org/questions/linux-server-73/setting-and-checking-the-expiration-date-of-a-user-4175480396/)

74razor 10-11-2013 03:52 AM

Setting and checking the expiration date of a user
 
I'm using CentOS 6.4 and adding a user account with an expiration date.

Syntax I've used is: useradd -e 2013-12-31 smith

Now, how do I verify this is part of smith's user account? I've tried looking in /etc/passwd, but the information is not listed there. I looked in /etc/default/useradd, but that is just the default variable that is blank.

I'm very new to CentOS, any help would be appreciated.

druuna 10-11-2013 03:54 AM

Try this:
Code:

chage -l username

74razor 10-11-2013 03:58 AM

Quote:

Originally Posted by druuna (Post 5043884)
Try this:
Code:

chage -l username

Exactly what I was looking for, thank you for your time.


All times are GMT -5. The time now is 12:15 AM.