免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 8979 | 回复: 15
打印 上一主题 下一主题

如何让一个账号的口令永不过期? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-10-30 11:52 |只看该作者 |倒序浏览
如何让一个账号的口令永不过期?

论坛徽章:
0
2 [报告]
发表于 2003-10-30 12:17 |只看该作者

如何让一个账号的口令永不过期?

man 5 shadow

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
3 [报告]
发表于 2003-10-30 12:44 |只看该作者

如何让一个账号的口令永不过期?

man chage ,改 -M 值。

论坛徽章:
0
4 [报告]
发表于 2003-10-30 12:55 |只看该作者

如何让一个账号的口令永不过期?

大虾能否说详细点?
谢!

论坛徽章:
0
5 [报告]
发表于 2003-10-30 13:04 |只看该作者

如何让一个账号的口令永不过期?

运行adminitools,改用户口令的期限

论坛徽章:
0
6 [报告]
发表于 2003-10-30 13:08 |只看该作者

如何让一个账号的口令永不过期?

图形方式我知道是可以的,但用passwd user时能用什么参数实现吗?

论坛徽章:
0
7 [报告]
发表于 2003-10-30 13:21 |只看该作者

如何让一个账号的口令永不过期?

用man passwd看看参数就好了

论坛徽章:
0
8 [报告]
发表于 2003-10-30 15:53 |只看该作者

如何让一个账号的口令永不过期?

好象没有这个参数

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
9 [报告]
发表于 2003-10-30 16:01 |只看该作者

如何让一个账号的口令永不过期?

請問一下:
1) man 5 shadow 時,你是如何理解如下這段的:
       The date of the last password change is given as the  num&
       ber  of  days  since Jan 1, 1970.  The password may not be
       changed again until the proper number of days have passed,
       and  must be changed after the maximum number of days.  If
       the minimum number of days required is  greater  than  the
       maximum  number  of  day allowed, this password may not be
       changed by the user.

2) 又,man chage 時,你如何理解 -M 的:
       With  the  -M  option, the value of maxdays is the maximum
       number of days during which a  password  is  valid.   When
       maxdays  plus  lastday  is  less than the current day, the
       user will be required to change her password before  being
       able  to  use  her account.  This occurance can be planned
       for in advance by use of the -W option, which provides the
       user with advance warning.

论坛徽章:
0
10 [报告]
发表于 2003-10-30 16:11 |只看该作者

如何让一个账号的口令永不过期?

[root@linux root]#head /etc/shadow                                         
root1lO7q$fN5OetRxgN/zztjcAk0ii/:12355:0:99999:7:::                     
[root@linux root]#        

好象这样的默认设置口令就不会失效!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP