1

I removed a password for the viral user with this command

sudo passwd -d 'viral'

After that, I tried to login as a root user in terminal but it's asking me for a password and tells me to try again.

How can I solve this problem?

Viral Nakrani
  • 111
  • 1
  • 6

1 Answers1

1

Apparently you have deleted (-d) the password for the user 'viral'. So if root-login asks for password, it is as designed.

If you do sudo passwd root and enter new password twice as prompted, you should be able to login in terminal as root. Don't ever let root have no password, and avoid using root-login as your normal login. Almost all operations that needs root permissions can be done with sudo.

Soren A
  • 6,799