Re: Can launch app as root but not as any other user
Re: Can launch app as root but not as any other user
- Subject: Re: Can launch app as root but not as any other user
- From: Robert Fischer <email@hidden>
- Date: Wed, 7 Aug 2002 12:39:55 +0200
On Wednesday, August 7, 2002, at 11:23 AM, Alexander Reichstadt wrote:
[localhost:~] root# su lowlevel
[localhost:/var/root] lowlevel% /Applications/MyApp.app/Contents/
MacOS/MyApp
kCGErrorIllegalArgument : initCGDisplayState: cannot map display
interlocks.
It seems not so complex as you think: I am sure its a problem of the
Window Server. Whenever you run a Cocoa app, you'll need access to the
Window Server. "root" does have superuser privileges but no one else.
Formerly (OpenStep) there was a 'Public Window Server' option which was
off by default, because its a security hole, if every user may access your
window server.
Solution: log in as another user to 'own' the Window Server.
Cheers,
Robert
--
--- - .-. -- --
--- / \ ---- Robert Fischer
.-. / \ --- .-. __o .-. @
/ \ / \ / \ _`\<,_ / \ berlin.de
/ \ / \ / \ (*)/ (*) / `--------------
/ `---' `-' `-----------'
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.