Why am I getting student08 is not in the sudoers file. This incident will be reporte
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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....
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
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444
Rep:
Quote:
Originally Posted by westerfield
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.
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!
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
[...] 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.