You are not logged in.

#1 2012-11-20 05:32:48

fantab
Member
From: 3rd Rock from the Sun
Registered: 2011-06-07
Posts: 152

[SOLVED] Unable to use SUDO: issues with /etc/sudoers

I have reinstalled Arch_64 and I have run into some problems with SUDO.

I get the following errors when I try to use sudo:

sudo : unable to stat /etc/sudoers : Permission Denied
sudo : no valid sudoers sources found, quitting
sudo : unable to initialize policy plugin

Here's what I have done with it so far:
* I added USERNAME (myself) to the 'wheel' group
* I uncommented %wheel ALL=(ALL) All using visudo
As it was not working for me I also:
* # chown -c root:root /etc/sudoers
* # chmod -c 0440 /etc/sudoers
* Since that too did not work, I recommented %wheel and added USERNAME ALL=(ALL) ALL just under the line root ALL=(ALL) ALL and repeated the above steps. The above problem persists.
* I checked with visudo -c and it says "/etc/sudoers parsed ok".

I have been through the WIKI and the forums but still unable to figure out whats going wrong.
I will appreciate if the forum can guide me to solution and help me resolve this issue.

Thanks.

Last edited by fantab (2012-11-20 09:00:56)


"Evolution is the nature's way of issuing upgrades".
__________________________________________________________
Arch_x64-Gnome-Shell ~ Arch-lts_x64-Xfce ~ LMDE_x64-Cinnamon

Offline

#2 2012-11-20 06:06:41

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Unable to use SUDO: issues with /etc/sudoers

Why did you chown and chroot(??? did you mean chmod) the sudoers file?  Had you changed them for some reason before?

Offline

#3 2012-11-20 06:55:51

fantab
Member
From: 3rd Rock from the Sun
Registered: 2011-06-07
Posts: 152

Re: [SOLVED] Unable to use SUDO: issues with /etc/sudoers

Oops.. I meant chmod...
No I havent' changed anything before. But since sudo is not working I also tried chown and chmod...


"Evolution is the nature's way of issuing upgrades".
__________________________________________________________
Arch_x64-Gnome-Shell ~ Arch-lts_x64-Xfce ~ LMDE_x64-Cinnamon

Offline

#4 2012-11-20 08:59:05

fantab
Member
From: 3rd Rock from the Sun
Registered: 2011-06-07
Posts: 152

Re: [SOLVED] Unable to use SUDO: issues with /etc/sudoers

I reinstalled the core and set up the /etc/sudoers again and its working now... but I still wonder where possibly I erred.

Anyways, since its all good now, I am marking this thread as SOLVED.


"Evolution is the nature's way of issuing upgrades".
__________________________________________________________
Arch_x64-Gnome-Shell ~ Arch-lts_x64-Xfce ~ LMDE_x64-Cinnamon

Offline

#5 2012-11-20 09:24:52

ideopath72
Member
Registered: 2009-09-09
Posts: 4

Re: [SOLVED] Unable to use SUDO: issues with /etc/sudoers

Had exactly the same problem with a new Arch_64 install a few months ago, which turned out to be a problem with permissions on / (which i changed with chmod) - can't remember the details, but it was this post that put me on to a solution:
http://archlinuxarm.org/forum/viewtopic … =20#p19727


Live it or live with it...

Offline

Board footer

Powered by FluxBB