Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Windows 7 you can start applications with admin rights and you can also run them as a different user.

Is there a similar feature in Mac OS X? I have sort of a special application that needs adminstrator rights, but I don't want to be logged in to the admin account.

share|improve this question
add comment

3 Answers 3

Type su "account-name" at the terminal. It will then ask you the password for that account and let you run commands as that user.

Third party GUI solutions include Peek-O-Matic and Joseph Beeson's Run As.

share|improve this answer
    
Is there no way through Finder or something like that? I can do it fine in the Terminal, but others here might not be as familiar with that, hehe. –  Svish Sep 15 '10 at 9:46
    
As far as I know, there's no built-in way to do that. Perhaps the closest thing would be to use fast user switching. –  Hippo Sep 15 '10 at 10:14
    
I'm the author of the Peek-o-Matic script that has been mentioned here. It's essentially an applescript wrapper for a shell command. Also, badly written. :-) Originally, it didn't need admin rights, but the transition from leopard to snow leopard broke this, so now, only the admin version seems to work more or less. To make things worse, it seems to be completely broken in lion. I'm afraid I'm not planning to adapt the script to lion. The applescript contains its own source code. –  user94400 Aug 16 '11 at 18:22
add comment

If an app needs admin rights, it should call the standard authorization APIs to pop up a dialog asking for your to authenticate as an administrator. If your app doesn't do that but needs those privileges, it's probably poorly written, or you're using it in a different way than it was intended.

share|improve this answer
    
It's definitely poorly written, that's no doubt, hehe. –  Svish Sep 15 '10 at 22:22
add comment

There is an applescript called "Peek-o-matic" on this page. It seems to be what you are looking for.

share|improve this answer
    
That looks very interesting. Will have a look :) –  Svish Sep 16 '10 at 9:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.