You are not logged in.

#1 2021-11-19 06:22:15

adityathombre1440
Member
Registered: 2021-11-19
Posts: 5

Not able to access "/etc/sudoers" file

Hello,
I am totally new to linux.I followed a youtube tutorial to install arch every step was done as said but I was not able to edit the /etc/sudoers file where you have to uncomment a purticular line.
The text editor that was used was visudo.But when I use it ,it says [ visudo: no editor found (editor path = /usr/bin/vi) ]
After some searching, I found that I can also use Vim Editor.But when I open the etc/sudoers with vim , the file does not show me the expected result.Rather says "read-only" in the bottom part.
The tutorial said to uncomment wheel ALL=(ALL) ALL
but in read only format ,the file appears to be blank.


I don't know if I formualted my problem correctly or not because I don't know what wrong is happening or which step did I miss.
I would be grateful for any sort of help.
Thanks.

Offline

#2 2021-11-19 06:57:56

cloverskull
Member
Registered: 2018-09-30
Posts: 277

Re: Not able to access "/etc/sudoers" file

You need to edit the sudoers file as root. So the first step would be

su

Once you are root, type

EDITOR=vim visudo

And you should be good to go.

Last edited by cloverskull (2021-11-19 06:58:18)

Offline

#3 2021-11-19 07:04:06

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,341

Re: Not able to access "/etc/sudoers" file

adityathombre1440 wrote:

I followed a youtube tutorial to install arch

You can, therefore, probably expect to see this thread closed quite quickly.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#4 2021-11-19 08:25:31

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Not able to access "/etc/sudoers" file

adityathombre1440 wrote:

I am totally new to linux.I followed a youtube tutorial to install arch every step was done

Hi adityathombre1440,

From personal experience I know that it can be daunting to install Arch the first time when you're new to Linux. I don't want to discourage your attempt, but the only supported installation method is the one in our wiki. We don't support third-party installation guides because there are far too many of them for us to follow and almost all of them inevitably end up out-of-date, whereas the wiki is always updated. Any problems that arise from a third-party installation could depend on any number of factors.

Please start over and take the time to work through the official installation guide step by step. If you get stuck on any step in the official guide, you're welcome to open a new thread to ask for help. Takes notes of what you've done and which commands you've run. If you encounter an error, copy or note the exact error message and context.

I'm closing this thread only because the installation method that you used is unsupported. We're here to help if you follow the official guide. Good luck!


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB