Friday, February 3, 2017
How to setup root password for Ubuntu
Now when we install the Ubuntu from brand new, we have no root account. Here we can set the root as following:
Input the following command in the Terminal
sudo passwd root
Then System will ask for the password of current user, after we install the current user's password, we can set the password for root.
yunhua@yunhua-PC:/etc/init$ sudo passwd root
[sudo] password for yunhua:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
yunhua@yunhua-PC:/etc/init$
yunhua@yunhua-PC:/etc/init$
yunhua@yunhua-PC:/etc/init$ su
Password:
root@yunhua-PC:/etc/init#
Finished.
PS: since I am the only user on this PC, I always set the password the same as my password.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment