set password chpasswd

main
AhFei 2023-10-24 17:28:42 +08:00
parent a27eedc22d
commit 703c81a39c
1 changed files with 1 additions and 1 deletions

View File

@ -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