Terminal Command to find out expiry date on user accounts
Hey,
I am a student writing their first bash script. In it we need to make expiry dates for users to expire in one year after creation. I think i did it. Is there a terminal command to see the expiry dates on user accounts? Thanks in advance Kyle- |
Code:
chage -l <username> |
Thanks a lot.... thot i tried that, gues snot.. Your the best!!
|
Here's a quick script based on chage. Replace the 1000 in test for what ever is the beginning user account UID on your system.
Code:
#!/bin/sh |
All times are GMT -5. The time now is 11:58 PM. |