当前用户是 ubuntu,如何通过脚本更改 root 用户密码?请各位大神指点
1
Vicer 2018-01-16 16:09:58 +08:00 via Android
|
4
mt7620 2018-01-16 16:26:02 +08:00
echo 'root:rootpassword' | chpasswd
|
5
swulling 2018-01-16 16:26:36 +08:00
echo "root:password" | chpasswd
|
6
viso1998 OP |
7
initdrv 2018-01-16 16:36:07 +08:00
echo "pwd" | passwd --stdin root
|