For some reason I think I should know how to do this, but I haven't
been able to get it to work yet. Any help is much appreciated!
This really should be a simple problem. We are using VisualAge Team
Connection for source code control, which uses IBM's DB2 underneath to
house the source code. This requires that a user be created that owns
both the DB2 database instance and the Team Connection instance. Code
is checked into and out of Team Connection via a client/server
architecture. Therefore, both the database manager and the Team
Connection server daemons need to be running in order to use the
So what I want to do is be able to have my server daemons start up
whenever the machine is booted. I have the syntax for the command and
all, and I can start the daemons from the command line. My problem is
that the application will not allow them to be run as root -- they can
only be run as the instance owner.
I have been trying all day to write a program that will run setuid()
that will allow me to change to the process owner. It seems that for
some reason I cannot change from root to the process owner, which is
keeping me from starting the daemons.
I am running on an RS/6000 Model R50, AIX 4.2.1.