You are not logged in.

#1 2011-09-15 09:00:18

SCiiGIRL-
Member
Registered: 2011-09-06
Posts: 15

change /etc/sudoers permission to read write

Hello, all!

I just installed Arch (yay) with gnome and one of my first tasks is adding

myUserName ALL(ALL) ALL

to /etc/sudoers.
I have been trying to edit with visudo, but every time i try to save ad quit, I get a message saying /etc/sudoers is read only.
I've tried using chmod to change permissions, but without success. After skimming through chmod documentation I tried a couple of things like:

chmod -w /etc/sudoers

, but none have worked so far. Ideas?

when I run

ls -l /etc/sudoers

, I get:

-r--r----- 1 root root 2849 Aug 18 08:44 /etc/sudoers

hmmm... BTW Aug 18? What could that be about? Definitely not today's date! IS it when sudoers was written, or could I have a problem with my date and time? Nah.. prob just date file was created I'm sure... Sorry! Total newb!

Thank you all!

Offline

#2 2011-09-15 09:49:01

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: change /etc/sudoers permission to read write

You need to be root (su - ) to use visudo.

Offline

#3 2011-09-15 14:24:12

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: change /etc/sudoers permission to read write

su -c visudo


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

Board footer

Powered by FluxBB