Re: geteuid() while debugging
Re: geteuid() while debugging
- Subject: Re: geteuid() while debugging
- From: Jim Ingham <email@hidden>
- Date: Mon, 27 Jun 2005 10:51:27 -0700
There's a feature request for running or debugging the target app as
another user in the Xcode database. However, feel free to file one
yourself; the more noise we get about a particular feature, the
higher priority it tends to get...
Jim
On Jun 26, 2005, at 12:04 PM, email@hidden wrote:
2005/06/25 v 21:58, Justin C. Walker:
You have to run gdb as root to debug processess running as root.
(If you think about it, it makes sense.)
I don't know whether there's any way for Xcode to run gdb as root
but you can do it yourself (using sudo) if you don't depend on
Xcode's GUI.
I think you have to log in as root to do this; as I recall a change
was made to Mac OS X a while back to prohibit launching GUI apps as
root while logged in as not-root (or, perhaps, just prohibiting
launching GUI apps under a different ID than that of the logged-in
user; I forget).
Not really. If one really needs to run a GUI application as root it's
quite easy using sudo, e.g.:
sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit &
There were just some minor issues in earlier versions of Mac OS X and
in Tiger it seems to work perfectly.
But this is not what I was talking about: For those who like the
Xcode debugger GUI it might be nice (and should be technically
possible AFAIK) to run Xcode as an ordinary user (to avoid potential
risks) and gdb as root "inside" XCode, but there's no such option in
Xcode.
--
Adam Nohejl
Loki Software
mailto:email@hidden
http://lokisw.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden