See Account Expiration Date.

Hi to All, I'm trying to find a command to see de expiration date of a a user account.In Linux I have the command chage -l user, and i can see the password expiration date and the account expiration date, any command in solaris to see it?Thanks to all!
[274 byte] By [Frozaa] at [2007-11-26 20:29:53]
# 1

Well, I've never used a "change" command in Linux, bit this is easy enough to script, the dates in /etc/shadow are the number of days since the beginning of Unix time, so you can convert to Unix time by multiplying by 86400 and formatting the output. In perl, "print scalar(localtime(00000000))" or some such.

To modify /etc/shadow, usermod is the Solaris equiv. See man usermod.

wsandersa at 2007-7-10 1:19:11 > top of Java-index,General,Talk to the Sysop...