How do I set a root password in Ubuntu?

How do I set a root password in Ubuntu?
Answer
How to change root password in Ubuntu
  1. Type the following command to become root user and issue passwd: sudo -i. passwd.
  2. OR set a password for root user in a single go: sudo passwd root.
  3. Test it your root password by typing the following command: su –
Photo in the article by “Wikimedia Commons”
Code:
https://commons.wikimedia.org/wiki/File:Devuan_GNU-Linux_-_tty_login_as_root_in_an_ownCloud_instance_-_server_rack.jpg
Steps to create a sudo user
  • Log in to your server. Log in to your system as the root user: ssh
    [email protected]
    _ip_address.
  • Create a new user account. Create a new user account using the adduser command.
  • Add the new user to the sudo group. By default on Ubuntu systems, members of the group sudo are granted with sudo access.
 

Tìm kiếm

Back
Top