1

I’ve bought a bare metal server and I was provided with a non-root user to log in.

I’ve tried enabling the root with sudo passwd root and changing the password and after I used sudo passwd -u root but I still get invalid username/password when I try logging in.

It never happened to me before and I can’t figure out how to get access to root.

2 Answers2

0

By default root user is not enabled in Ubuntu. To Enable root user you should first login by root user and set a password in terminal for root user.

user@computerName:`$ sudo bash

[sudo] password for user: Enter you current user password

root@computerName:/home/user# passwd

New password: Enter your root new password

Now every time you open terminal, type su command to login as root user:

user@computerName:`$ su root

Password: Enter root user password

root@computerName:/home/user# passwd

UserMat
  • 600
  • 4
  • 10
  • 27
0
  • write :
    sudo su it will ask for your password type it and then you will be working as a root, pay attenti
Khimya
  • 1
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Dec 15 '21 at 20:36