Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-08-2007, 12:14 PM   #1
Senior Member
Registered: Feb 2007
Location: My HDD...
Distribution: WinXP for designing, Linux for life.
Posts: 2,329
Blog Entries: 1

Rep: Reputation: 47
Debian user not in sudoers file...

I have been having to log in as root to do anything, and this is what my terminal says:

kevan@debian:~$ sudo apt-get install nmap
kevan is not in the sudoers file. This incident will be reported.
I don't really know what the problem is. Any ideas?
Old 04-08-2007, 12:34 PM   #2
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
man sudo?
Maybe this should help.
Old 04-08-2007, 01:00 PM   #3
Registered: Nov 2006
Location: Lancashire, United Kingdom
Distribution: Slackware 13
Posts: 243

Rep: Reputation: 31
I don't know if Debian has this (it probably does), but if you type 'visudo' at the command line, the sudoers file will be opened in vi, in that file there will probably be a commented (or not) bit which talks about users in the 'wheel' group having superuser privileges. Just uncomment it, or if it is already uncommented, do nothing, and as root, add your user to the 'wheel' group.
Old 04-08-2007, 01:08 PM   #4
Registered: Jun 2005
Location: WV USA
Distribution: Debian/Ubuntu
Posts: 43

Rep: Reputation: 15
While there is some information on the manpage of sudo, you will find much more by accessing the manpage for the sudoers file:

drax946@eirulan:~$ man sudoers

Also to edit the /etc/sudoers file, it may be best to use "visudo" which does syntax checking and such before it saves the file.

drax946@eirulan:~$ man visudo

The grammar in the /etc/sudoers file looks as if it could be quite complex, from limiting users to only being able to run certain commands as certain users to allowing a user to open a root terminal with no password.

In general I make use of "su" with password authentication or the Root Terminal from the Gnome menus. I believe both are setup in the default workstation setup.

Hope this helps get you headed in the right direction for what you are wanting to do.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with sudoers file aarulan Linux - Newbie 4 03-26-2006 10:24 PM
Sudoers File Help Harlin Linux - Software 1 03-15-2006 04:16 PM
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
help with sudoers file ogden2k Linux - Security 4 03-11-2003 10:39 AM
The Sudoers File Rubicone Linux - Security 0 05-02-2002 06:17 PM

All times are GMT -5. The time now is 10:13 AM.

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