If wotaskd runs as root, then I believe it will spawn your app as root -- This is one of the possible fixes if you get that AWT error that it can't talk to the window server (there are other better fixes for this, just an example). If you're running the old startup script way, there is explicitly a section of /System/Library/Startup Items/ WebObjects/WebObjects that shows how to do this. If you're running the launchd way, then you should just be able to set the launching user (I don't recall the tag name offhand, but it should be pretty easy to lookup).

ms

On Oct 12, 2007, at 8:50 AM, Kieran Kelleher wrote:

I have not had to do what you want to do, but I would think the womonitor/wotaskd launchd items is what determines that the wo installation runs as appserver.... so changing appserver to root in those places might be all that is needed. Of course this will probably make all apps run as root.

If you want just one app run as root, then this unusual requirement might be achievable as follows ....

wotaskd launches apps in spawnofwotaskd.sh script inside its own woa bundle ..... maybe customizing this script might be a basis for launching different apps as different users but I would think wotaskd itself would have to be root to be able to launch another app as root and the rest as appserver.

In any case, if I was doing this I would experiment on a dev server, not a live production one.

HTH, Kieran

On Oct 12, 2007, at 7:33 AM, Mailinglist wrote:

Hi list

I know that this is unusual and I'm fully aware of any security problems this might bear. But for one deployment of a webobjects app we need the webobject app to start as root instead of appserver. Where do I have to set this up?

Regards Thierry
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kieran_lists% 40mac.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/mschrag% 40mdimension.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to