在Exadata上修改操作系统用户口令的方法

联系:QQ(5163721)

标题:在Exadata上修改操作系统用户口令的方法

作者:Lunar©版权所有[文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.]

注意修改完了要用这个用户登录一次才可以:

[root@dm01db01 onecommand]# dcli -g cell_group -l root "echo welcome | passwd --stdin celladmin"
dm01cel01: Changing password for user celladmin.
dm01cel01: passwd: all authentication tokens updated successfully.
dm01cel02: Changing password for user celladmin.
dm01cel02: passwd: all authentication tokens updated successfully.
dm01cel03: Changing password for user celladmin.
dm01cel03: passwd: all authentication tokens updated successfully.
[root@dm01db01 onecommand]# 
[root@dm01db01 onecommand]# 
[root@dm01db01 onecommand]# dcli -g dbs_group -l root "echo \"welcome1\" | passwd --stdin root"
dm01db01: Changing password for user root.
dm01db01: passwd: all authentication tokens updated successfully.
dm01db02: Changing password for user root.
dm01db02: passwd: all authentication tokens updated successfully.
[root@dm01db01 onecommand]# 


[root@dm01db01 onecommand]# dcli -g cell_group -l root "pam_tally2 -r -u celladmin"
dm01cel01: Login           Failures Latest failure     From
dm01cel01: celladmin          26    03/19/14 14:38:07  dm01cel01.lunar.com
dm01cel02: Login           Failures Latest failure     From
dm01cel02: celladmin           4    01/03/12 15:49:57  dm01db01.lunar.com
dm01cel03: Login           Failures Latest failure     From
dm01cel03: celladmin           4    03/30/12 13:27:20  dm01db01.lunar.com
[root@dm01db01 onecommand]# 
[root@dm01db01 onecommand]# 
[root@dm01db01 onecommand]# 
[root@dm01db01 onecommand]# dcli -g cell_group -l root "pam_tally2 -r -u root"
dm01cel01: Login           Failures Latest failure     From
dm01cel01: root                0
dm01cel02: Login           Failures Latest failure     From
dm01cel02: root                0
dm01cel03: Login           Failures Latest failure     From
dm01cel03: root                0
[root@dm01db01 onecommand]# 
此条目发表在 FAQ, 日常运维 分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注