Terminal User Guide

This Tutorial helps to How to Enable Standard Users to Run a Program with Admin Rights without the Password C:WindowsSystem32runas.exe /savecred /user:ngl. Note: Not all applications will run or get extracted with this method, but for me some of the apps that I desperately needed, did. Like 7Zip is one of the apps that are not on my university’s computer and with this method I was able to use the app on these administrator restricted computers.

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. I have an application set as a remote app (W2012) that works fine. As long as only one person at a time runs it. In order to set the application to run in multi-user mode, I have to use a switch '/m'. This actually works well, but ONLY if the application (with the correct switch) is run with administrator privs.

You must be an administrator or root user, also called superuser, to execute many of the commands used to manage a server.

Mac Run App With Admin Privileges Access

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.

To run commands with superuser privileges, use the sudo command. sudo stands for superuser do.

The following example works on computers with macOS installed, so don’t run it unless you want to restart your computer:

% sudo shutdown

You’re asked for the password of the current user.

Only administrator users can use sudo. If you’re not logged in as an administrator, you can do so by entering the following command, where adminUsername is the name of an administrator user:

Run App With Admin Privileges Mac

You’re asked to enter the password for adminUsername, after which a new shell is opened for that user.

If a command requires it, you can use su to switch to the root user. Under normal circumstances, you shouldn’t log in as the root user.

Mac Run App With Admin Privileges

Important: If you use su to log in as the root user, be especially careful, because you have sufficient privileges to make changes that can cause your computer to stop working.

Mac Run App With Admin Privileges Windows 10

See alsoEnter a password in the Terminal window on Macsudo command man pagesu command man page

Run Terminal As Admin Mac

Are you sure your log in account is an Admin account? Check that in Users & Groups preferences.

Admin Privileges Setup

What are the associated permissions for the program's file in your Applications folder and what permissions are associated with Applications folder itself? They should be, respectively:

Mac Run App With Admin Privileges
  1. System r/w; Wheel r/only; Everyone r/only
  2. System r/w; Admin r/w; Everyone r/only

Check these and, if needed, change them by selecting the file or folder. Press COMMAND-I to open the Get Info window. The Sharing & Permissions panel is at the bottom. To make a change you first need to click on the little lock icon and authenticate with your admin password.

Jun 21, 2014 1:02 PM