LinuxQuestions.org
Help answer threads with 0 replies.
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


Closed Thread
  Search this Thread
Old 11-18-2018, 11:28 AM   #1
leydijo
LQ Newbie
 
Registered: Nov 2018
Posts: 2

Rep: Reputation: Disabled
Perimission Denied sudoers


installed ubuntu for the first time and I wanted my user to be an administrator so I followed some step by step that I found were
nano / etc / sudoers.
in the line that says #User privilege specification
root ALL = (All: ALL) All
leydi ALL = (All: ALL) All
save changes and then throw me this message
Error reading / etc / sudoers: permission denied
if I execute visudo it shows me visudo: / etc / sudoers: Permission denied

now it does not allow me to do anything, and I can not find the solution.

Thank you
 
Old 11-18-2018, 01:28 PM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 14,658

Rep: Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775Reputation: 4775
duplicate of https://www.linuxquestions.org/quest...rs-4175642606/
 
Old 11-18-2018, 02:59 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,951

Rep: Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146
boot a live usbstick mount your drive, if it does not auto mount it, then using root in your live os edit it back to where is was, or fix it like it needs to be.

if this is you: leydi
what groups are in sudoers, wheel, or sudo, or both, either way pick one, uncomment it, add leydi to that group, done.
 
Old 11-18-2018, 03:12 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,951

Rep: Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146Reputation: 2146
N/m
 
Old 11-18-2018, 03:30 PM   #5
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.8.2003
Posts: 4,838

Rep: Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765Reputation: 1765
Quote:
Originally Posted by leydijo View Post
nano / etc / sudoers.
There should be no spaces or . I'm not sure what you actually edited. You may have created a file call etc in the directory you were in when you ran the command; or you may have created a file caled sudoers.
The command to edit sudoers is
Code:
nano /etc/sudoers
but given your newbieness, you probably shouldn't do that until you know more.
 
  


Closed Thread


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
Apache getting (13) Permisison Denied Access to /index.html denied imkornhulio Linux - Server 1 03-12-2015 12:31 PM
[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
fstab - how to set rwx perimission to all user? lonecrow Linux - Newbie 6 08-19-2007 04:39 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

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

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