Hi, Robert.

Thanks for the speedy reply.

On Oct 02 2013, Robert Woodcock wrote:
> On 10/02/2013 06:27 PM, Rogério Brito wrote:
> >Also, I just tried installing mtr-tiny and I get the same results with
> >EPERM.
>
> Note that when you run "strace mtr", you are no longer running mtr
> as root, as
> Linux does not honor the setuid bit for ptrace'd processes.

Thanks for noting that. I didn't know it.

> Therefore it cannot
> open the raw socket it needs to create packets. From strace(1):
> 
>        -u username Run command with the user ID, group ID, and  supple‐
>                    mentary  groups  of  username.   This option is only
>                    useful when running as root and enables the  correct
>                    execution  of setuid and/or setgid binaries.  Unless
>                    this option is used setuid and setgid  programs  are
>                    executed without effective privileges.
> 
> 'sudo strace mtr' would work around this.

I'm attaching (as compressed files) the output of running both
`sudo strace mtr` and `sudo strace mtr --curses`.

> You didn't say if you ran any tests other than strace with the
> mtr-tiny package,

Well, I tried to run it, of course. :) I got the same results (read:
"returning back to the prompt").

> but you would probably want to try running 'mtr --curses' to
> eliminate possible
> X misconfiguration problems. You may also want to check the $DISPLAY
> environment
> variable.

Read about the --curses test that I did with mtr (and trying to run mtr-tiny
both with and without strace).

I don't really believe that I have problems with X (the value of DISPLAY is
fine), as I can launch any other programs that I want, and, in fact, I
always use the command line for everything.

Is there anything else that I can do to rule out problems?


Thanks again for your speedy response,

-- 
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA
http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br

Attachment: sudo-strace-mtr--curses.log.xz
Description: Binary data

Attachment: sudo-strace-mtr.log.xz
Description: Binary data

Reply via email to