diff --git a/initial.sh b/initial.sh index 30b1aed..ac461e1 100644 --- a/initial.sh +++ b/initial.sh @@ -34,7 +34,7 @@ usermod -aG sudo ${nml_user_name} # 有些发行版 RN 的就没有sudo adm usermod -aG adm ${nml_user_name} usermod -aG docker ${nml_user_name} # set password -echo ${password} | passwd --stdin ${nml_user_name} +echo "${nml_user_name}:${password}" | chpasswd # 修改ssh端口和禁止root登陆 cp ${SSHCONF} ${SSHCONF}.bak