Gentoo Archives: gentoo-user

From: Christer Ekholm <che@××××××.se>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: two identical /etc/sudoers -- only one works
Date: Sun, 27 May 2007 00:12:45
Message-Id: 86k5uv1677.fsf@poke.chrekh.se
In Reply to: Re: [gentoo-user] Re: two identical /etc/sudoers -- only one works by maxim wexler
1 maxim wexler <blissfix@×××××.com> writes:
2
3 > Most similar instance is following the line:
4 > <...>
5 > readlink("/proc/self/fd/0, "/dev/tty2", 4095) = 9
6 > getuid32() = 0
7 > ^
8 > note: no 'e'
9
10 Yes that's also interesting, uid is zero, which is should be since you
11 are running strace as root. uid and euid is two different attribs of a
12 process, both should be zero.
13
14 >
15 >>
16 >> Check also that root actually has uid=0 on that
17 >> machine.
18 >>
19 >> $ getent passwd | grep ^root
20 >> root:x:0:0:root:/root:/bin/bash
21 >
22 > checks OK
23
24 Good, but unfortunate since i'm out if ideas now.
25
26 >
27 > FWIW, scrolling to the top of the output of strace --
28 > how do I write strace to a file?
29
30 strace -o file
31
32 > -- there is the line:
33 >
34 > close(393) =-1 EBADF (Bad file descriptor)
35 >
36 > followed by 630 similar lines ending in 'close(1023)
37 > ditto' then the "body" of the output.
38
39 That is perfectly normal. sudo just closes every fd's even the ones not
40 opened.
41
42
43 --
44 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Re: two identical /etc/sudoers -- only one works Arturo 'Buanzo' Busleiman <buanzo@××××××××××.ar>