I have installed this version of Ubuntu on my laptop.
└─ $ ▶ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial
Because of my limited knowledge regarding Linux, I have added
a line manually to
My user which I login to the laptop is
gofoboso with a password.
This user has sudo rights.
After adding the second line into the contents following, I do not have sudo rights.
root:x:0:0:root:/root:/usr/bin/zsh gofoboso:x:0:0:gofoboso:/gofoboso:/usr/bin/zsh daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin bin:x:2:2:bin:/bin:/usr/sbin/nologin
I understand that the passwords are encrypted on the
/etc/shadow file, and now this has the exact attributes as the root user has (??)
─ $ ▶ sudo cat /etc/shadow [sudo] password for gofoboso: Sorry, try again. [sudo] password for gofoboso: sudo: account validation failure, is your account locked
This is the company's laptop and I do not have the root password.
I've tried some commands I found online but all of them required sudo.
Anyone knows how can I revert this ? Most importantly I cannot restart the laptop or shut it down, because it will ask the password of the user
gofoboso, which probably it's the same as root's now ??
If it cannot be fixed without becoming root, If someone knows the root password, and deletes that line the gofoboso user will be enabled again?