add user to sudoers
Posted on 2013-07-01
I set up an Ubuntu server in February and have been using it without any problems to host some websites and a MySQL server.
Today I logged into it to restart the server and when I run "sudo restart" it says
"administrator is not in the sudoers file. this incident will be reported"
I've never seen this before. And, I'm not sure how one day the "administrator" user would have sudo privileges and the next day it doesn't.
I restated the server in recovery mode and tried to add
"administrator ALL=(ALL:ALL) ALL"
to the /etc/sudoers file but it says that it's a read-only file system so I can't modify the file.
I tried to do "sudo useradd administrator sudo" but it gave me an error code 1. (whatever that means)
any ideas? I can't do anything on my server because I don't have sudo rights for the only user account on the server.
I've had limited past experience with linux and this is my first time running a linux server so I'm a bit of a noob. Please use childs language when explaining.