• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can launch app as root but not as any other user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Can launch app as root but not as any other user (From: "Alexander Reichstadt" <email@hidden>)

  • Prev by Date: Re: NSTableView setDoubleAction/NSControl setAction
  • Next by Date: Dock Alert: Was: Sheet, window closing, application quitting
  • Previous by thread: Can launch app as root but not as any other user
  • Next by thread: Re: Can launch app as root but not as any other user
  • Index(es):
    • Date
    • Thread