Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to check how long the logon expires

Status
Not open for further replies.

hokky

Technical User
Nov 9, 2006
170
AU
Hi guys,

simple question as title above please ?
 
This is ver OS dependant. Please let us know which flavour of Unix you are using

Ceci n'est pas une signature
Columb Healy
 
With Solaris OS versions try man logins.
Lots of options here for what you need.
 

hokky,

Run 'man chage'. chage -l username might be what you're looking for.

 
Thanks ZaSter,

How do I change the expiry date "dd/mm/yy" to never ?

Thanks,
 
hokky said:
How do I change the expiry date "dd/mm/yy" to never ?

Not sure which expiration (password or account) you are trying to set, but you would set it to the maximum number possible, 99999, using the '-M' or '-E' options of the chage command.

For example, to set 'username' password to never expire, you would use:

chage -M 99999 username

Does that help you?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top