LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-24-2010, 05:07 PM   #1
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 107Reputation: 107
How do I add myself to the sudoers list?


Tired of getting told that I'm not in the sudoers file. How do I add myself to it, and is there any reason that I wouldn't want to?
 
Old 07-24-2010, 05:24 PM   #2
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Bullseye
Posts: 1,508

Rep: Reputation: Disabled
Any reason you can't use su?.
There's nothing wrong with using sudo,personally I just don't like Ubuntu's interpretation of sudo use.
 
Old 07-24-2010, 05:32 PM   #3
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Original Poster
Rep: Reputation: 107Reputation: 107
not really, I'm just sick of being told I'm not in the sudoers list.
 
Old 07-24-2010, 06:25 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,884
Blog Entries: 28

Rep: Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533Reputation: 533
sudo - Debian Wiki
http://wiki.debian.org/sudo

SUDO Configuration in Debian
http://www.debianhelp.co.uk/sudo.htm

Debian User Forums • View topic - Proper way to open apps as root in X
http://forums.debian.net/viewtopic.php?f=16&t=53366
 
Old 07-24-2010, 07:41 PM   #5
hoodooman
Member
 
Registered: Oct 2006
Location: Stirling in Scotland
Distribution: Slackware 13.37 64 bit
Posts: 297

Rep: Reputation: 42
can you edit /etc/sudoers and and yourself e.g through group wheel?.Thats what I do on slackware,don't know if its different on your system.
 
Old 07-25-2010, 07:29 AM   #6
bullium
Member
 
Registered: Aug 2003
Location: Ohio
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146

Rep: Reputation: 17
Quote:
Originally Posted by hoodooman View Post
can you edit /etc/sudoers and and yourself e.g through group wheel?.Thats what I do on slackware,don't know if its different on your system.
To edit the sudoers file you should use the command "visudo". You should never edit that file by hand.
 
Old 07-26-2010, 06:31 PM   #7
tonyfreeman
Member
 
Registered: Sep 2003
Location: Fort worth, TX
Distribution: Debian testing 64bit at home, EL5 32/64bit at work.
Posts: 196

Rep: Reputation: 30
visudo or add self to sudo group

Switch over to root and type visudo. The benefit of using visudo is that it will check syntax and whatever else and warn you of any problems you may have introduced into the sudoers file.

Code:
su - 
visudo
visudo shows me that there is a group I could place myself into called 'sudo'. So instead of fooling around in the sudoers file add yourself to the 'sudo' group if you like ... that's what I've done.

Code:
%sudo ALL=(ALL) ALL
To add your normal user (tony) to this group:

Code:
su - 
usermod -a -G sudo tony
The 'tony' user will have to provide his/her password to issue system commands using sudo.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How do i add myself to "the sudoers file" Lyle Debian 2 05-15-2010 06:27 AM
sudoers list Pedroski Fedora 4 11-06-2009 10:20 AM
How do I add a program to the chkconfig --list? hunterhunter Linux - General 1 04-12-2006 05:13 PM
how do i add gcc to the Path list? wonderwizard SUSE / openSUSE 6 02-18-2006 12:14 AM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration