Gentoo Archives: gentoo-user

From: John Jolet <john@×××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] permissions problem
Date: Sun, 05 Feb 2006 02:29:04
Message-Id: 41A48B77-EF72-4267-B96A-070D1598969D@jolet.net
In Reply to: Re: [gentoo-user] permissions problem by Richard Fish
1 On Feb 4, 2006, at 7:56 PM, Richard Fish wrote:
2
3 > On 2/4/06, John Jolet <john@×××××.net> wrote:
4 >> Okay, I give up. I've been struggling with a couple of very, very
5 >> strange permissions problems for months. I just finished an emerge -
6 >> e system and emerge -e world hoping it would fix it. first problem:
7 >> trying to use sudo, but it keeps saying "can't open sudoers file,
8 >> permission denied". even if i'm root doing sudo it tells me that.
9 >
10 > Try doing "strace sudo ..." as root. That should at least tell you
11 > what system call is returning -EPERM.
12 >
13 okay, so I emerged strace and did that. didn't find any "EPERM"
14 thing, but did find this:
15 lstat64("/etc/sudoers", {st_mode=S_IFREG|0440, st_size=1643, ...}) = 0
16 setresgid32(-1, 0, -1) = 0
17 setresuid32(0, 1, 0) = 0
18 open("/etc/sudoers", O_RDONLY) = -1 EACCES (Permission denied)
19 geteuid32() = 1
20 setresuid32(0, 0, 0) = 0
21 write(2, "sudo: ", 6sudo: ) = 6
22 write(2, "can\'t open /etc/sudoers", 23can't open /etc/sudoers) = 23
23
24
25 which just says permission denied, right? am I missing something
26 simple here? i mean, root can read anything, right?
27 > -Richard
28 >
29 > --
30 > gentoo-user@g.o mailing list
31 >
32
33 --
34 gentoo-user@g.o mailing list