(no subject)
(no subject)
- Subject: (no subject)
- From: "Alexander Reichstadt" <email@hidden>
- Date: Wed, 07 Aug 2002 19:54:16 -0700
Hi,
I didn't use the Terminal because I chose to jsut like that. It was a
mere measure to find out why I couldn't do just that, i.e. l.ogging in
as another user and start the app.
Do I have to compile the app being someone other than root, or for
that matter, does that make a difference that I couldn't fix using
terminal?
Alex
====
Von: Robert Fischer <email@hidden>
Datum: Mi, 07. Aug. 2002 03:39:55 US/Pacific
An: email@hidden
Kopie: cocoa-dev <email@hidden>
Betreff: Re: Can launch app as root but not as any other user
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.
_______________________________________________
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.