Mac - Administrative privileges¶
Privilege escalation with the Privileges app
If you are using a Mac laptop that is 2022 or newer, admin and sudo privilege elevation is typically automatic through the Privileges app. Do not submit a request for access if this is already enabled. For more information, see Escalating Admin Rights on your Mac via Privileges.
To verify you have admin access:¶
- Click the Spotlight icon
on your taskbar, type
Users & Groups
, and then press ENTER. - In the window that opens, locate your account in the list and
confirm that
Admin
appears by your account name.
To verify you have sudo access:¶
-
In the terminal, run the following command:
sudo -v
-
When prompted, type your password. This is the same password used to log in to your laptop.
-
The command generates nothing if you have sudo access; otherwise, the following message appears:
Sorry, user [username] may not run sudo on [hostname].