user not in sudoers

Todd Edwards tedwards at mcclatchyinteractive.com
Wed Apr 13 20:23:56 UTC 2011


Edit the file /etc/sudoers and add yourself there. Although deemed a
security risk by the Ubuntu community you can also change the root
password and become root as you can when using Fedora, CentOS, etc...
Just add yourself to the sudoers file above and do sudo passwd to change
root's password. Sudo has some pretty strict file permissions so you'll
need to chmod it to something you can edit like 700 and then chmod it
back to I believe 440 (if you get this step wrong it will tell you what
the permissions need to be when you try to use sudo).

-- Todd Edwards

On Wed, 2011-04-13 at 12:57 -0700, Johan Scheepers wrote:
> Good day,
> 
> Not used to ubuntu. Using Fedora, Centos, Mandriva.
> 
> Want to use and and learn ubuntu.
> 
> While waiting for ubuntu 11.04,  I installed 10.10 to get used to it.
> Now this sudo term. When I use sudo for a root command it tells me I am 
> not in the sudoers file.
> 
> This is annoying. How do I get myself (user) in the sudoers file.
> This is at home and I am the only user.
> 
> I am used to become root when required and get out when finished. Would 
> rather have the OS operating as I am used to.
> 
> Kindly some advice please.
> Thanks
> Johan S






More information about the ubuntu-users mailing list