1833606 Members
3199 Online
110061 Solutions
New Discussion

error in running script

 
Waqar Razi
Regular Advisor

error in running script

I have an oracle script on hpux server.

-rwxrwxrwx 1 oracle oinstall 788 Jan 2 2008 uc4_report.ux

It runs fine on server using root id. When we try to run through schedular (uc4), its giving the following error.

Error:

20081003/100703.111 - U2003043 Invalid 'setgid()' call. Error code: ('1' - 'Not owner'



Can any one give me some guidance?
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor

Re: error in running script

Hi Wagar:

Your schedular process isn't running as 'root' and therefore cannot perform a 'setgid()' to change the real, effective or saved-group of the process. See these manpages for more information:

http://www.docs.hp.com/en/B3921-60631/setuid.2.html

Regards!

...JRF...
Waqar Razi
Regular Advisor

Re: error in running script

The schedular is using the root passwd to execute it. When you use the same root user to login to the server and run as root, it runs fine.

Is there any problem with the owner and group. Its owner is oracle and group is oinstall
OldSchool
Honored Contributor

Re: error in running script

so root started uc4, correct?

what do you run at the command line (that works)?

what command (exactly) is in the scheduler?

Waqar Razi
Regular Advisor

Re: error in running script

/home/oracle/scripts/uc4_report.ux
OldSchool
Honored Contributor

Re: error in running script

well, the script is chmod 777 which, security-wise, isn't good, but what happens if you:

chmod 6755 uc4_report.ux

then have the scheduler run it?
Dennis Handly
Acclaimed Contributor

Re: error in running script

>OldSchool: chmod 6755 uc4_report.ux

If it has to run at root, you also need to change the owner/group.