25.12.2020

How To Run App As Administrator On Mac

How To Run App As Administrator On Mac Rating: 6,5/10 6570 votes

To use Run as to start an application as an administrator, follow these steps: Locate the application that you want to start in Windows Explorer, the Microsoft Management Console (MMC), or Control Panel. Press and hold down the SHIFT key while you right-click the executable file or the icon for the application, and then select Run as. That will always launch it as an administrator, and you will get the UAC prompt every time you start. If you just want to run as admin every once and awhile, then right-click and choose Run as administrator. EDIT - still not clear if you are trying to do this for your dev tools, or if you want your installed app to run this way. I'm sure you are wondering why I want to do this. I am running NetRestore within a NetBoot image that was not created by NetRestore Helper, as I need to run some other GUI software after I do the restore. It logs into a standard administrator account. Normally when you run NetRestore, it asks you to authenticate before restoring.

Whether your IT department locked down your Mac or you grabbed one from eBay that the seller forgot to “clean up”, you may encounter a big problem when trying to install software as a non-admin.

  • Enter administrator commands in Terminal on Mac. You must be an administrator or root user, also called superuser, to execute many of the commands used to manage a server. For example, if you’re not an administrator or a root user, entering the shutdown command gives you an error: This is because the shutdown command can be run only by the root user or by an administrator user with root user privileges.
  • How to Run GUI Apps as root in Mac OS X Feb 6, 2013 - 10 Comments Those familiar with the command line know that running things with super user privileges is typically just a matter of using the sudo command.
  • Start your Mac and log in as an administrator or the root user. To log in as the root user, click 'Other' in the login window, enter 'root' in the 'Name' box and the root user's password in the 'Password' box.

Here’s a possible workaround.

If you’re trying to install software on your Mac the first thing you should do is simply contact your IT department. /is-there-a-folder-app-for-mac.html. They can use login to your computer remotely and installed the software for you. You may not like having to wait for IT but it’s not you’re computer so you shouldn’t install stuff on it. Also, you could unwittingly end up installing something that looks benign but is actually nefarious.

That being said, in an emergency there are two possible solutions:

  1. Drag and Drop
  2. Single User Mode

When you see the application installation login window you can either beg for the admin password or try a little workaround that I’m about to show you.

First see if you can just drag the app icon into the Applications folder.

If that fails, you could try Control clicking the app and choosing Open Package Details to see if you can modify the info.plist file or whatevever.

There was on old hack that worked on older versions of Mac OS X that let you modify a string in info.plist which effectively disabled authentication. Well I haven’t found a way to get this work in Mac OS X Yosemite so I’m going to assume it doesn’t work anymore.

One other possibility is to boot the Mac to Single User Mode and use the Directory Services Command Line tool to join your non-admin account to the administrator group.

Reboot and hold down Command + s until you see a black screen appear with a bunch of white text.

After a few seconds you’ll at something that resembles a Unix prompt.

First we need to mount the root file system so type

This mounts the root file system for read-write access.

Then type:

Replace <usernameToBeGivenRoot> with your non-admin username.

If you need to list the users and groups you can type:

Press Enter, type reboot and login with your non-admin account.

Ultimately, you shouldn’t try to “hack around” the password security mechanisms that prevent you from installing software. These features are here for a reason and unless you really know what you’re doing some of the tutorials out there can leave you with a broken PC and a chagrined look on your face when you call IT and they ask you what happened.

Posted in Apple, Mac OS X 10.9 Mavericks Tagged with: Tricks
-->

This article describes how to use the Run as command to start an application as an administrator.

Original product version: Windows Server 2003
Original KB number: 325362

Summary

You can use Run as to start an application as an administrator if you want to perform administrative tasks when you are logged on as a member of another group, such as the Users or Power Users group.

Steps to start an application as an administrator

To use Run as to start an application as an administrator, follow these steps:

  1. Locate the application that you want to start in Windows Explorer, the Microsoft Management Console (MMC), or Control Panel.
  2. Press and hold down the SHIFT key while you right-click the executable file or the icon for the application, and then select Run as.
  3. Select The following user.
  4. In the User name and Password boxes, type the administrator account and password, and then select OK.

How To Run Windows On A Mac

Note

Run Pc Apps On Mac

  • Some applications may not support the use of the Run as command.
  • You may not be able to start an application, MMC console, or Control Panel tool from a network location by using the Run as command if the credentials that are used to connect to the network share are different from those used to start the application. The credentials that are used to run the application may not permit you access to the same network share.
  • You can also use the Run as command from the command line. For more information, select Start, and then select Run. In the Open box type cmd, and then select OK. At the command prompt, type runas /?, and then press ENTER.