Nguyễn Tuyền
New member
How do I set a root password in Ubuntu?
Answer
How to change root password in Ubuntu
Steps to create a sudo user
Answer
How to change root password in Ubuntu
- Type the following command to become root user and issue passwd: sudo -i. passwd.
- OR set a password for root user in a single go: sudo passwd root.
- Test it your root password by typing the following command: su –
Code:
https://commons.wikimedia.org/wiki/File:Devuan_GNU-Linux_-_tty_login_as_root_in_an_ownCloud_instance_-_server_rack.jpg
- 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.