Commit bb1e117d by tingweiwang

更新设置密码的方式。

1 parent 1fb5a150
Showing with 1 additions and 1 deletions
...@@ -24,7 +24,7 @@ echo "设置ssh,允许root用户登陆以及设置密码" ...@@ -24,7 +24,7 @@ echo "设置ssh,允许root用户登陆以及设置密码"
sed -i s/prohibit-password/yes/g /etc/ssh/sshd_config sed -i s/prohibit-password/yes/g /etc/ssh/sshd_config
sleep 1 sleep 1
echo "设置root用户密码" echo "设置root用户密码"
echo "$root_passwd" | passwd --stdin "root" echo root:seetatech |chpasswd
sleep 2 sleep 2
echo "设置节点dns" echo "设置节点dns"
sleep 1 sleep 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!