maxim wexler <[EMAIL PROTECTED]> writes:

> Most similar instance is following the line:
> <...>
> readlink("/proc/self/fd/0,  "/dev/tty2", 4095) = 9
> getuid32()                               = 0
>    ^
> note: no 'e'

Yes that's also interesting, uid is zero, which is should be since you
are running strace as root. uid and euid is two different attribs of a
process, both should be zero.

>
>> 
>> Check also that root actually has uid=0 on that
>> machine.
>> 
>> $ getent passwd | grep ^root
>> root:x:0:0:root:/root:/bin/bash
>
> checks OK

Good, but unfortunate since i'm out if ideas now.

>
> FWIW, scrolling to the top of the output of strace --
> how do I write strace to a file?

strace -o file

> -- there is the line:
>
> close(393)             =-1 EBADF (Bad file descriptor)
>
> followed by 630 similar lines ending in 'close(1023)
> ditto' then the "body" of the output.

That is perfectly normal. sudo just closes every fd's even the ones not
opened.


-- 
[EMAIL PROTECTED] mailing list

Reply via email to