user acct expiration

how can i tell on a solaris 9 if a user acct has an expiration date? and when that expuiration is.

The fifth field of the shadow file will contain number of days before account is locked (or suppose to be locked). Field 3 is the day the last change was made (either password was changed or account was locked). Field six is how many days to warn user of account lock before locking.

See the man page for shadow section 4
man -s 4 shadow

See C2 or enhanced security for perl script to check the date and other info.

it is written in you /etc/shadow. columns are:
username: password:lastchg: min:max:warn: inactive:expire:flag

change it with usermod
for example:
usermod -e 9/12/5 pressy
means that the user pressy account expire on the 12 July 2005

be carefull! in your shadow the expire column is written in unixtime days (days since 1970's)

gP

they want to know when the accounts are going to expire.

and i dont have smc.

is there a script somewhere that will tell me the exp date of an acct?

What's wrong with
passwd -s -a

passwd -s -a gives when the password was changed or the account was locked. Since he is looking for when an account will expire, he needs to 'do the math' for each. Possibly your datecalc can do that for him (I haven't looked at it in some time) with the output of passwd -s -a.