Expiration date of user account

Hi,

How to check user account expiration account in user mode for SunOS 5.10?
In Linux I can use chage command.
I googled for answer for the problem but it was useless.

Oskar

Hi

you can use the usermod -e expire to midifythe expiration or can you verify the /etc/passwd file,
*refer to estructure
loginID:password:lastchg:min:max:warn:inactive:expire:

I'm not an admin for this server.
I only want get to know when my account expire.
usermod command is only for admin
passwd hasn't info about expiration date.

Oskar

No worries then, if the system is hardened, it should warn you about your expiry in advance for you to change password. In the event that it gets locked , its your sys admin's job to make the system force to change your password in your next login attempt

I don't put in doubt competence of my admin :slight_smile:
I want to know how long my account will be valid.
I guess it is possible to get to know this information like in Linux :slight_smile:

Oskar

Try: passwd -s

(man passwd)

-s name
Shows password attributes for the login name. For the nisplus repository, this works for everyone. However for the files repository, this only works for the superuser. It does not work at all for the nis repository which does not support password aging.

"$passwd -s
Permition denied"
:frowning:

Oskar

Have you read the line properly??
-s name
Shows password attributes for the login name. For the nisplus repository, this works for everyone. However for the files repository, this only works for the superuser. It does not work at all for the nis repository which does not support password aging.

Hmm, you put me in doubt.

"~$ passwd -r nisplus -s my_user_name
passwd: User unknown: my_user_name
Permission denied "

What does it mean?

Oskar