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 |