Re: Error message: NOT super-user
Re: Error message: NOT super-user
- Subject: Re: Error message: NOT super-user
- From: Nick Zitzmann <email@hidden>
- Date: Sat, 8 Sep 2007 12:32:11 -0600
On Sep 8, 2007, at 12:11 PM, Ricardo Diaz wrote:
from an NSTask in an awakeFromNib method, but it didn't work. So I
tried to run it in the Terminal and got this message: NOT super-user.
I am the system administrator of my machine, why doesn't this work?
Or, what should I do to make it work?
If it says that you need to be the super-user, it means you need to
run it with root privileges. But if you really need to shut down the
computer for some reason, then you ought to use NSAppleScript and
System Events instead. That won't require root privileges.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden