set password chpasswd
parent
a27eedc22d
commit
703c81a39c
|
@ -34,7 +34,7 @@ usermod -aG sudo ${nml_user_name} # 有些发行版 RN 的就没有sudo adm
|
||||||
usermod -aG adm ${nml_user_name}
|
usermod -aG adm ${nml_user_name}
|
||||||
usermod -aG docker ${nml_user_name}
|
usermod -aG docker ${nml_user_name}
|
||||||
# set password
|
# set password
|
||||||
echo ${password} | passwd --stdin ${nml_user_name}
|
echo "${nml_user_name}:${password}" | chpasswd
|
||||||
|
|
||||||
# 修改ssh端口和禁止root登陆
|
# 修改ssh端口和禁止root登陆
|
||||||
cp ${SSHCONF} ${SSHCONF}.bak
|
cp ${SSHCONF} ${SSHCONF}.bak
|
||||||
|
|
Loading…
Reference in New Issue