0

I'm trying to do a login in my Ubuntu, but I can't: enter image description here

I read Q&A about enabling root user, but how I can do it without a sudoer user? How can I add a sudoer user without having root access? I think it is a loop!

Ebrahim Ghasemi
  • 197
  • 3
  • 16
  • Did you try this solution ? – d a i s y May 02 '16 at 05:00
  • @Lnux the first step for that solution is Login as root or su to get root prompt! I can't do it. It face me an Authenticatio Failure (Maybe because root is not enabled) – Ebrahim Ghasemi May 02 '16 at 05:20
  • It's seems like your user rcii is not sudoer. Try adding this user to sudo group, adduser rcii sudo or give this user sudo rights via visudo command. – Gen May 02 '16 at 05:25

1 Answers1

0

When you install Ubuntu, the first user you create has sudo access. If that's how you are logged on, and you don't have sudo access, you must have messed up something. Boot from installation media, mount your root partition and edit /etc/sudoers to include your username (and/or edit your groups file to include your username to the sudo group).

By default, you cannot log in as root on an Ubuntu machine. There are lots of ways of changing this, but it's probably best if you don't until you can figure out how to do it on your own :)

d a i s y
  • 5,511
JayEye
  • 1,033