ubuntu修改root密码,$ sudo passwd root

ubuntu修改root密码,$ sudo passwd root_第1张图片

 

lyzh@ubuntu:~$ passwd root
passwd: You may not view or modify password information for root.
lyzh@ubuntu:~$ sudo passwd root
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
lyzh@ubuntu:~$ 
lyzh@ubuntu:~$ 
lyzh@ubuntu:~$ su root
Password: 
root@ubuntu:/home/lyzh# 
root@ubuntu:/home/lyzh# 
root@ubuntu:/home/lyzh# 

 

欢迎关注我的公众号

 

 

 

你可能感兴趣的:(Linux)