unix 密码有效时间设置

来源:百度知道 编辑:UC知道 时间:2024/06/18 23:00:10
在linux下,可以通过修改/etc/login.defs文件设置有密码有效PASS_MAX_DAYS 180
那unix呢,如果查看和修改这个密码有效期,我一直找不到有效的方法。请高手指点。

unix有好多种的,不知道你用的是那个,列几种最常见的
Solaris:
The password expiration is no more than ninety days for general user account.
Add a entry with following content in file /etc/default/passwd
MAXWEEKS=13

The password expiration is no more than sixty days for administrator.
Login as root and issue the following command:
#passwd –x 60 root

HPUX:
password expiration is no more than ninety days for general user account.
1). Select the “Modify Password Aging Policies..” in template creation.
2). Enter “90” in the “Password Expiration Time (days):” column.

The password expiration is no more than sixty days for administrator.
1). Select the “Modify Password Aging Policies..” in template creation.
2). Enter “60” in the “Password Expiration Time (days):” column.

AIX:
The password expiration is no more than ninety days for general user account.
Add a entry with following content in the section of d