UBuntu 16.04 TLS security issues unable to change root password

I am running Ubuntu 16.04 TLS server. I am unable to change the root password or add users to the sudoer file
Barry-f4Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ares KurkluSoftware EngineerCommented:
Are you logged into the server via SSH and can you do that as su - i guess ssh may not be letting you do that?  Do you have access to the sever physically?
root filesystem might be mounted readonly if you can't add users.
0
Barry-f4Author Commented:
yes I have access to the physical server
0
Barry-f4Author Commented:
I tried to change the root password via the recovery console and was unable to
0
Defend Against the Q2 Top Security Threats

Were you aware that overall malware worldwide was down a surprising 42% from Q1'18? Every quarter, the WatchGuard Threat Lab releases an Internet Security Report that analyzes the top threat trends impacting companies worldwide. Learn more by viewing our on-demand webinar today!

Seth SimmonsSr. Systems AdministratorCommented:
by design, ubuntu doesn't prompt for a root password during setup
the user account you create is added to sudoers so you can use sudo to do root functions
are you doing sudo visudo to edit it?
0
Barry-f4Author Commented:
No,I am using vi
0
serialbandCommented:
You need to sudo vi to gain root to edit the file.  Are you doing that?
0
Seth SimmonsSr. Systems AdministratorCommented:
No,I am using vi

you use visudo to edit the file
0
Barry-f4Author Commented:
OK I will try it over the weekend
0
Barry-f4Author Commented:
When I try the  visudo  command I get the following:

/etc/sudoers            permission denied
0
serialbandCommented:
Try:
sudo vi /etc/sudoers
0
Seth SimmonsSr. Systems AdministratorCommented:
did you use sudo visudo as i stated previously?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Barry-f4Author Commented:
My bad Seth  i was able to get in what do I just uncomment the sudo ALL line?
0
Barry-f4Author Commented:
Never mind I got it thanks
0
Barry-f4Author Commented:
Much thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Security

From novice to tech pro — start learning today.