LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 01:58 PM   #1
westerfield
LQ Newbie
 
Registered: Apr 2013
Posts: 14

Rep: Reputation: Disabled
Why am I getting student08 is not in the sudoers file. This incident will be reporte


student08 is not in the sudoers file. This incident will be reported.
 
Old 04-17-2013, 02:00 PM   #2
westerfield
LQ Newbie
 
Registered: Apr 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Question Why am I getting student08 is not in the sudoers file.

I am in terminal and I am trying to do sudo fdisk -l, when I put in the root password, I get: student08 is not in the sudoers file. This incident will be reported.

What am I doing wrong?
 
Old 04-17-2013, 02:02 PM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Cross-posting is against the LQ rules. Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place.

Continue in the other/original thread: https://www.linuxquestions.org/quest...te-4175458517/

Reported for closure.

both threads have been merged

Last edited by druuna; 04-18-2013 at 01:11 AM.
 
Old 04-17-2013, 02:06 PM   #4
Nbiser
Member
 
Registered: Oct 2012
Location: Maryland
Distribution: Fedora, Slackware, Debian, Ubuntu, Knoppix, Helix,
Posts: 302
Blog Entries: 7

Rep: Reputation: 44
In order to do work as root in this scenario you need to type the following:
Code:
su root
and then do things just as with sudo. I'm honestly not sure why this is.....I've always just accepted it.
 
Old 04-17-2013, 02:14 PM   #5
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by westerfield View Post
student08 is not in the sudoers file. This incident will be reported.
If you are a student working on a schools PC why are you trying to sudo anyway?
 
Old 04-17-2013, 02:21 PM   #6
westerfield
LQ Newbie
 
Registered: Apr 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
I'm a student, but I am working within VMWare on my labs at home
 
Old 04-17-2013, 02:29 PM   #7
westerfield
LQ Newbie
 
Registered: Apr 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
the su root worked for me. Thank you Nbiser. I am working from the CompTIA Linux+ Certification book. working on exploring partitions with fdisk. The book asks you to use a terminal window entering sudo fdisk -l and that is where I ran into problem.
 
Old 04-17-2013, 02:41 PM   #8
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 westerfield View Post
the su root worked for me. Thank you Nbiser. I am working from the CompTIA Linux+ Certification book. working on exploring partitions with fdisk. The book asks you to use a terminal window entering sudo fdisk -l and that is where I ran into problem.
No problem!

I'm working through the same book.
 
Old 04-17-2013, 03:35 PM   #9
westerfield
LQ Newbie
 
Registered: Apr 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
Nbiser,

Since you are working on the same book....have you completed the lab A-3: formatting a partition with mkfs on page 7-13? This worked fine for me in class, but here at home I am not seeing the lost+found file on my drive2p1.
I thought it was because I didn't create the directory properly, yet when I try to mkdir /mnt/drive2p1 it says'mkdir:cannot create directory '/mnt/drive2p1': file exists. So I don't know where my lost+found entry is....
 
Old 04-17-2013, 03:39 PM   #10
joe_2000
Senior Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,016

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by Nbiser View Post
I'm honestly not sure why this is.....I've always just accepted it.

Sudo is a tool that allows a regular user to temporarily gain root privileges, using his user password. For that to work he needs to be allowed to do that. This permission is set up in the sudoers file, using the command visudo.

There is a good guide how to set up sudo in the arch wiki in case you are interested in the details.

Last edited by joe_2000; 04-17-2013 at 03:43 PM. Reason: corrected typo
 
Old 04-17-2013, 03:51 PM   #11
westerfield
LQ Newbie
 
Registered: Apr 2013
Posts: 14

Original Poster
Rep: Reputation: Disabled
I apologize...I posted twice on accident.
 
Old 04-17-2013, 04:09 PM   #12
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
Quote:
Originally Posted by westerfield View Post
I am in terminal and I am trying to do sudo fdisk -l, when I put in the root password, I get: student08 is not in the sudoers file. This incident will be reported.

What am I doing wrong?
What distro are you using?
 
Old 04-17-2013, 04:23 PM   #13
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 westerfield View Post
Nbiser,

Since you are working on the same book....have you completed the lab A-3: formatting a partition with mkfs on page 7-13? This worked fine for me in class, but here at home I am not seeing the lost+found file on my drive2p1.
I thought it was because I didn't create the directory properly, yet when I try to mkdir /mnt/drive2p1 it says'mkdir:cannot create directory '/mnt/drive2p1': file exists. So I don't know where my lost+found entry is....
Are you using the lab book? I don't have the lab book, I'm just going through the study guide, practicing things as I learn them. You ought to post the problem that you mentioned in a seperate thread because I'm not sure where that could've gone!
 
Old 04-17-2013, 04:24 PM   #14
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 joe_2000 View Post
Sudo is a tool that allows a regular user to temporarily gain root privileges, using his user password. For that to work he needs to be allowed to do that. This permission is set up in the sudoers file, using the command visudo.

There is a good guide how to set up sudo in the arch wiki in case you are interested in the details.
Thanks for filling me in! I knew about sudo, and what it was used for, I just didn't know why my systems would sometimes say that I wasn't in the sudoers file.

Last edited by Nbiser; 04-17-2013 at 04:27 PM. Reason: Typo
 
Old 04-17-2013, 04:33 PM   #15
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by Nbiser View Post
[...] I just didn't know why my systems would sometimes say that I wasn't in the sudoers file.
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.
 
  


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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