Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Add myself to sudoers file

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
CarterCox
Posts: 19
Joined: 2017-12-11 17:44

Add myself to sudoers file

#1 Post by CarterCox »

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!

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Add myself to sudoers file

#2 Post by bw123 »

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.
resigned by AI ChatGPT

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Add myself to sudoers file

#3 Post by RU55EL »

You should do some reading at the https://wiki.debian.org/sudo page.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: Add myself to sudoers file

#4 Post by GarryRicketson »

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.

CarterCox
Posts: 19
Joined: 2017-12-11 17:44

Re: Add myself to sudoers file

#5 Post by CarterCox »

Yes! I did it by typing "su", typinfg the root password and then excecuting commands that way. Everything is done now. Thank you all!

Post Reply