Add myself to sudoers file

New to Debian (Or Linux in general)? Ask your questions here!

Add myself to sudoers file

Postby CarterCox » 2017-12-11 23:38

Hello. I'm trying to run this command:

Code: Select all
sudo nano /etc/default/grub


And I get this:

Code: Select all
[sudo] password for xxxx:
xxxx is not in the sudoers file.  This incident will be reported.


How can I solve this?

Thank you very much!
CarterCox
 
Posts: 19
Joined: 2017-12-11 17:44

Re: Add myself to sudoers file

Postby bw123 » 2017-12-11 23:57

Hi, welcome to the forum.

There is a wiki on that I'm sure, try wiki.debian.org and search for sudo. Also you can search the forum here, there are a lot of good topics to fix almost every problem you will have.

i think they recommend using 'visudo' to edit sudoers file.
User avatar
bw123
 
Posts: 3189
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Add myself to sudoers file

Postby RU55EL » 2017-12-12 00:25

You should do some reading at the https://wiki.debian.org/sudo page.
User avatar
RU55EL
 
Posts: 361
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Add myself to sudoers file

Postby GarryRicketson » 2017-12-12 01:04

Or just use 'su', see the manual :
Code: Select all
man su

But then again, if you don't know enough basic Linux commands, maybe you
shouldn't be trying to do anything as root, or using sudo yet.

I think, if sudo is installed, there is a manual for it, I don't remember, it has been so long since I used ubuntoo , and my Debian installations do not have it, never installed it.
Code: Select all
man sudo
and
Code: Select all
man visudo


Did you try :
How to add myself to sudoers file on Debian
The link to the Debian wiki is the first hit.
User avatar
GarryRicketson
 
Posts: 4960
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Add myself to sudoers file

Postby CarterCox » 2017-12-12 01:39

Yes! I did it by typing "su", typinfg the root password and then excecuting commands that way. Everything is done now. Thank you all!
CarterCox
 
Posts: 19
Joined: 2017-12-11 17:44


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable