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?
 
Seth SimmonsConnect With a Mentor Sr. Systems AdministratorCommented:
did you use sudo visudo as i stated previously?
0
 
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
Will You Be GDPR Compliant by 5/28/2018?

GDPR? That's a regulation for the European Union. But, if you collect data from customers or employees within the EU, then you need to know about GDPR and make sure your organization is compliant by May 2018. Check out our preparation checklist to make sure you're on track today!

 
Barry-f4Author Commented:
I tried to change the root password via the recovery console and was unable to
0
 
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
 
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
All Courses

From novice to tech pro — start learning today.