[omniORB] Running omniNames as a non-priviledged user?

Thomas Lockhart lockhart at fourpalms.org
Mon Dec 22 09:44:23 GMT 2003


>> This is something that I didn't anticipate in the omniNames.suse script.
>> Must omniNames be run as another user than root? If so, I will modify
>> the script file accordingly (just let me know as which user to run :) )
...
> 3) Define a new user and group "omni"
> For (3), we will have to add code in the "%pre" section to verify the 
> existence of the user "omni", and create it otherwise. Other RPMs do 
> this so we can find examples to borrow. "%postun" will need to back out 
> the user (I think??; maybe the user stays defined), and we may need to 
> chown the logging directories so that RPM updates of the package will 
> result in correct directory and file ownership.

OK, I've patched up my spec file to define and use the user "omni" for 
purposes of running daemons.

My system does not have startproc, which is used by the SuSE startup 
script. I had trouble finding a man page on the web, but from what I can 
gather it just needs a "-u omni" to run the program under the "omni" 
user. Does anything else need to change? I've ginned up a new set of 
development RPMs for review and testing (including a change for SuSE) 
and posted the source RPM at:

   http://www.fourpalms.org/pub/omniORB/devel/omniORB-4.0.3-4.src.rpm

                   - Tom





More information about the omniORB-list mailing list