Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get sudo to work - get a permission denied error.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
lenkite
n00b
n00b


Joined: 09 Nov 2003
Posts: 3

PostPosted: Tue Nov 01, 2005 2:19 pm    Post subject: Can't get sudo to work - get a permission denied error. Reply with quote

Hi,

I am following the instructions given at http://www.gentoo.org/doc/en/sudo-guide.xml. My user is present in the wheel group. I have a line in /etc/sudoers (edited with visudo) which looks like:

%wheel ALL=(ALL) ALL

But when I open a terminal with my user locally, and do a 'sudo -l' I get this error:

sudo: can't open /etc/sudoers: Permission denied
aitria tarun # sendmail: Cannot open mail:25

Am i missing something ? Any help appreciated.

Thanks...
Back to top
View user's profile Send private message
djay
Apprentice
Apprentice


Joined: 18 Apr 2005
Posts: 188
Location: Israel

PostPosted: Tue Nov 01, 2005 3:03 pm    Post subject: help is on the way Reply with quote

Look here

Hope it helps..... :wink:
Back to top
View user's profile Send private message
lenkite
n00b
n00b


Joined: 09 Nov 2003
Posts: 3

PostPosted: Tue Nov 01, 2005 7:29 pm    Post subject: Thanks that worked.. but I don't quite get why? Reply with quote

Thanks djay!..I only saw your reply now. A simple chmod worked. :-)

I don't quite get why though? Why should permissions of the root dir affect sudo?
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Tue Nov 01, 2005 7:48 pm    Post subject: Reply with quote

Moved from Networking & Security to Duplicate Threads, follow ups to this topic.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum