password expiration

Hello

can anyone explain where can be found logic for user password expiration on solaris as well as on reliant UNIX??

there is not much help of /etc/security directory..does not exist!

any help?

under /etc/default

#vi passwd

#ident "@(#)passwd.dfl 1.3 92/07/14 SMI"
MAXWEEKS=8
MINWEEKS=
PASSLENGTH=8
WARNWEEKS=6

right..on reliant unix this file /etc/default/passwd exitsts..

what should be set in order to have permanent password..

is that only that I have to leave it blank ??

MAXWEEKS=24
MINWEEKS=0
WARNWEEKS=1
PASSLENGTH=6

# The following variables are only used of the CSP (C2 Security)
# package is installed. You may wish to change SYSTEM_PASSWORDS
# to YES and PASSLENGTH (above) to 8.
SYSTEM_PASSWORDS=NO

or how?

issue command :

# passwd -x -1 <user_name>

password aging will be tuned off ;means password will never expire for that user.