Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-17-2013, 04:52 PM   #16
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Rep: Reputation: 44

Originally Posted by PTrenholme View Post
The file, /etc/sudoers must be edited, by root, to give individual users (or groups) permission to run specific programs (or "ALL" programs) aliased as some other user (usually "root").

Since this is your own (virtual) system, you could edit that file to give "student08" permission to use sudo.
Gotta ya.
Old 04-17-2013, 06:27 PM   #17
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 624

Rep: Reputation: 144Reputation: 144
coupla things here:

has student08 been added to the sudoers file?
In my Fedora/Centos world you enter you own password in response to sudo. Not the root password
Old 04-17-2013, 07:03 PM   #18
LQ Newbie
Registered: Apr 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
TroN-0074 My distro is Debian 6
Old 04-17-2013, 07:07 PM   #19
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,509
Blog Entries: 16

Rep: Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211Reputation: 3211
If I recall properly, Debian does not automatically set up the sudoers file. It's there, but no one is automatically entered in it, unlike in Ubuntu and its derivatives. (It's been almost three years since I set up my Debian install.)

Instead of sudo, try using su to switch to root, then do your root stuff, then exit back to user.

If you want to edit the sudoers file, do so while you are su-ed over to root, using the command visudo to open the sudoer editor.

Last edited by frankbell; 04-17-2013 at 07:08 PM.
Old 04-17-2013, 09:15 PM   #20
Senior Member
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Like mentioned above, type su then type your password then all the command will be executed as root. If you prefer sudo you will have to edit the sudo text file. sudo is mainly the way of Ubuntu to do things
Good luck to you!
Old 04-17-2013, 10:41 PM   #21
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
If you use 'su', you need to enter root's passwd, not your own.
NB: this logs you in as root, BUT with your original env. To get root's env (eg $PATH etc), use
su -
You would use sudo with your own passwd.

Its perfectly valid to enable some users to access a limited set of privileged cmds via sudo/sudoers; that's what it was invented for.
What's peculiar to Ubuntu (& derivatives I believe) is that the root acct is disabled and the first user acct created is automatically given access to ALL cmds via sudo; NOT what it was created for...
1 members found this post helpful.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sudoers File Bijith Nair Linux - Newbie 1 10-13-2012 09:38 AM
[SOLVED] User not in sudoers: How to add user? Permtion Denied for sudoers file esgol Linux - Newbie 3 07-13-2012 07:44 AM
Fedora /etc/sudoers file and sudoers.d directory davejjj Linux - Newbie 2 10-21-2011 06:19 PM
not in the sudoers file? underworld288 Slackware 3 06-18-2007 12:48 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:44 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