1755033 Members
3045 Online
108828 Solutions
New Discussion юеВ

strace

 
Chakravarthi
Trusted Contributor

strace

as normal user when i run the following command
strace -o /tmp/a ping chakri

i get the following error message
strace: exec: Operation not permitted


any idea why this happens

regards
chakri
2 REPLIES 2
Huc_1
Honored Contributor

Re: strace

ls -l /usr/ping gives
-rwsr-xr-x 1 root root 32908 Feb 17 2004 /bin/ping

notice the s
set user or group ID on execution

the following command works !

strace -o /tmp/a df
but ls -l /usr/df gives
-rwxr-xr-x 1 root root 33852 May 4 18:26 /bin/df

Jean-Pierre
Smile I will feel the difference
Suresh Pai
Advisor

Re: strace

The man page for strace gives you an explanation (and a possible solution). It is, as explained by the other user, a SETUID issue. The possible solution described in the man page is to install a special version of strace with mode 'rwsr-xr--', user root and group trace, where memers of the trace group are trusted users.