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
KuppingerCole Reviews AlgoSec in Executive Report

Leading analyst firm, KuppingerCole reviews AlgoSec's Security Policy Management Solution, and the security challenges faced by companies today in their Executive View report.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.