Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SUDO] can't open /etc/sudoers - permission denied [PENDING]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Thu Nov 04, 2004 10:40 pm    Post subject: [SUDO] can't open /etc/sudoers - permission denied [PENDING] Reply with quote

That's the message that i get when i try to run any of the programs i used to run with sudo (a month ago).

/etc/sudoers is chmoded 0440

sudo-1.6.7_p5

Edit1.- Of course /etc/sudoers file is correctly edited to the current user.
Back to top
View user's profile Send private message
Rav70
l33t
l33t


Joined: 11 Feb 2004
Posts: 607
Location: Poland

PostPosted: Fri Nov 05, 2004 8:35 am    Post subject: Reply with quote

Maybe your sudo is missing the SUID bit? Try:
Code:

ls -l `which sudo`

It should give:
Code:

---s--x--x 1 root root 105224 May 28 09:27 /usr/bin/sudo

If the perms are not like that try:
Code:

chmod 4111 `which sudo`

Regards,
Rav
_________________
Q: Why is Microsoft's Product Support a failure?
A: Because Microsoft needs a Support Group instead.
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Fri Nov 05, 2004 9:18 am    Post subject: Reply with quote

thanX for answering, but the binary permissions were O.K.

Note: if i run sudo as root, same error message is given. Already tried --> emerge -C sudo ; emerge -v sudo <-- removed /etc/sudoers. Also installed sudo-1.6.8_p1-r1, but same weird thing happens.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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