Operating System - HP-UX
1752808 Members
6758 Online
108789 Solutions
New Discussion юеВ

Re: tusc=>oracle "losing setuid/setgid privileges when tracing"

 
SOLVED
Go to solution
VAS_1
Frequent Advisor

tusc=>oracle "losing setuid/setgid privileges when tracing"

We are trying to troubleshoot a problem an application has connecting to Oracle (9.2.x) on an Integrity server (11.23). Vendor suggested we use truss (tusc) and start the process. Unfortunately, the oracle binary is setuid/setgid and this app runs as another user. tusc very specifically says "NOTE: .../oracle: losing
setuid/setgid privileges when tracing"

Then the application fails with an error "ORA-27123: unable to attach to shared memory segment HPUX-ia64" Of course, this makes perfect sense, but doesn't help me figure out why the application is failing!

Has anyone faced this loss of privileges problem, or does anyone have any suggestions? (If I run the application and then connect to the process with tusc from the root account, I don't get interesting information.)


Thanks for any insight.

Victoria
4 REPLIES 4
Kent Ostby
Honored Contributor
Solution

Re: tusc=>oracle "losing setuid/setgid privileges when tracing"

If you chmod the tusc then it should work:

chmod 4755 tusc
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Steven E. Protter
Exalted Contributor

Re: tusc=>oracle "losing setuid/setgid privileges when tracing"

Shalom Victoria.

If you activate tusc as the root user and connect it to an already runing process, because root started the data collection, it will be able to collect data under all users.

This will eliminate the problem you encountered and is perfectly safe.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
VAS_1
Frequent Advisor

Re: tusc=>oracle "losing setuid/setgid privileges when tracing"

This forum rocks.

chmod 4755 got me past the privileges problem. Thanks Kent!

Steven, unfortunately, attaching to the process as the root user did not give me interesting information! Only that it was blocking on a signal, or not catching it appropriately; I haven't determined yet. But it was just showing me a sigaction/sigprocmask loop continually, no matter what flags I passed to the program. I'll save that mystery for another time.

Thanks again.

Victoria


VAS_1
Frequent Advisor

Re: tusc=>oracle "losing setuid/setgid privileges when tracing"

chmod 4755 tusc