注意修改完了要用这个用户登录一次才可以:
[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]#