LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 44

Quote:
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, 07:27 PM   #17
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 581

Rep: Reputation: 126Reputation: 126
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, 08:03 PM   #18
westerfield
LQ Newbie
 
Registered: Apr 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
TroN-0074 My distro is Debian 6
 
Old 04-17-2013, 08:07 PM   #19
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,340
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
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 08:08 PM.
 
Old 04-17-2013, 10:15 PM   #20
TroN-0074
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, 11:41 PM   #21
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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
Code:
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.
  


Reply


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 10:38 AM
[SOLVED] User not in sudoers: How to add user? Permtion Denied for sudoers file esgol Linux - Newbie 3 07-13-2012 08:44 AM
Fedora /etc/sudoers file and sudoers.d directory davejjj Linux - Newbie 2 10-21-2011 07:19 PM
not in the sudoers file? underworld288 Slackware 3 06-18-2007 01: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 06:03 PM


All times are GMT -5. The time now is 06:41 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration