怎样修改solaris 系统时间
2017-12-09
展开全部
cat /etc/default/passwd文件:
MAXWEEKS=13 密码的最大生存周期为13周;(Solaris 8&10)
PWMAX= 90 #密码的最大生存周期;(Solaris 其它版本)
设置密码永不过期,以账号aaa为例:
#passwd -x -1 aaa
man passwd
-n min Sets minimum field for name. The min
field contains the minimum number of
days between password changes for name.
If min is greater than max, the user can
not change the password. Always use this
option with the -x option, unless max is
set to -1 (aging turned off). In that
case, min need not be set.
-u Unlocks a locked password for entry
name. See the -d option for removing the
locked password, or to set a password to
allow logins.
-w warn Sets warn field for name. The warn field
contains the number of days before the
password expires and the user is warned.
This option is not valid if password
aging is disabled.
-x max Sets maximum field for name. The max
field contains the number of days that
the password is valid for name. The
aging for name is turned off immediately
if max is set to -1.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询