楼主: 小明上广州

[Linux] Linux Unix 集群应用实战 基于IBM服务器LB集群构建

  [复制链接]

0

主题

151

帖子

875

积分

Kib

Rank: 3Rank: 3

贡献
0
技术
0
活跃
158
在线时间
23 小时
发表于 2016-3-8 22:24:01 | 显示全部楼层
thanks for sharing

3

主题

963

帖子

6499

积分

论坛贵宾VIP-永久权限

Rank: 8Rank: 8

贡献
0
技术
0
活跃
974
在线时间
140 小时
发表于 2016-3-8 23:09:59 | 显示全部楼层
PurposeThis article provides instructions on preventing the forced lockout of the root account and on unlocking a locked root account.

CauseThe 5.5 release of the vCenter Server Appliance (vCSA) enforces local account password expiration after 90 days by default. This policy locks out the root account when the password expiration date is reached.

Resolution
This behavior affects vCenter Server Appliance 5.5.


Prevent forced lockout when the root account is still activeIf the root account is still accessible through the vCSA console or via the secure shell (SSH), you can prevent this issue from occurring by modifying the /etc/cron.daily/pass-expiration script.

To prevent the forced lockout when the root account is still active:


Log in to the vCSA as the root user.
Open the /etc/cron.daily/pass-expiration script in a text editor.
Replace the commands at the bottom of the script to replace the forced lockout with a forced password change:

Delete these commands:

# disable the password if it's time and not already done.
# don't rely on the pam account facility. prepend an x in the shadow file.
if [ $TODAY -ge $DEADLINE ] && ! grep -q 'root:x' $SHADOW; then
   sed -e 's/^root:\(.*\)/root:x\1/' $SHADOW -i
fi
Enter these commands:

# force a password change for root if we've reached the password expiration date.
# pam.unix2 doesn't do this the way we would like, so we do this instead.
if [ $TODAY -ge $DEADLINE ]; then
   chage –d 0 root
fi
Save and close the file.

0

主题

96

帖子

525

积分

Kib

Rank: 3Rank: 3

贡献
0
技术
0
活跃
92
在线时间
9 小时
发表于 2016-3-8 23:44:20 | 显示全部楼层
ddddddddddddd

1

主题

312

帖子

2048

积分

Tib

Rank: 7Rank: 7Rank: 7

贡献
0
技术
0
活跃
238
在线时间
32 小时
发表于 2016-3-9 01:17:03 | 显示全部楼层
学习学习,谢谢

0

主题

437

帖子

3162

积分

Eib

Rank: 6Rank: 6

贡献
-100
技术
0
活跃
537
在线时间
82 小时
发表于 2016-3-23 13:19:41 | 显示全部楼层
看看学习一下

0

主题

1974

帖子

1万

积分

论坛贵宾VIP-永久权限

Rank: 8Rank: 8

贡献
0
技术
0
活跃
1116
在线时间
190 小时

有钱银!水神我爱三通

发表于 2016-3-26 20:42:48 | 显示全部楼层
谢谢                       

8

主题

3166

帖子

2万

积分

论坛贵宾VIP-永久权限

Rank: 8Rank: 8

贡献
0
技术
0
活跃
2846
在线时间
311 小时
发表于 2016-3-28 09:23:27 | 显示全部楼层
Linux Unix 集群应用实战 基于IBM服务器LB集群构建Linux Unix 集群应用实战 基于IBM服务器LB集群构建

0

主题

191

帖子

1758

积分

论坛贵宾VIP-永久权限

Rank: 8Rank: 8

贡献
0
技术
0
活跃
598
在线时间
42 小时
发表于 2016-4-13 20:48:47 | 显示全部楼层
集群应用实战 基于IBM服务器LB集群构
使用 高级模式(可批量传图、插入视频等)
您需要登录后才可以回帖 登录 | 立即注册

快速回复 返回顶部 返回列表