+3 votes
895 views
Open and run Terminal as Mac Administrator

in Mac by (551k points)
reopened | 895 views

1 Answer

+4 votes
Best answer

Open Mac terminal and run commands as Administrator or superuser

macOS is a versatile operating system from where it will be possible to manage a large part of its resources and services directly from the Mac terminal . For this, there are a large number of commands that are related based on the tasks to be executed, user information, disk validation, shutdown or reboots, etc., everything is a set of options to correctly manage the macOS system..

 

But only an administrator or root user, who is also known as superuser, will be able to execute most of the commands available for the administration tasks of a server or computer, this is a denominator in UNIX systems. Being an administrator allows us to make more important changes to our team, knowing that there may be significant consequences for it. Opening the Mac terminal as administrator allows us to execute commands to modify important parts of the computer.

 

 

TechnoWikis will explain in a simple way how you can execute commands in the macOS terminal as administrator or superuser..

 

To stay up to date, remember to subscribe to our YouTube channel!   SUBSCRIBE

 

Open Mac terminal and run commands as Administrator or superuser

 

Step 1

For this we access the terminal either from Spotlight or from Applications - Utilities, when accessing the terminal we will be as the current user with whom the session was started:

 

image

 

Step 2

There we will execute the following:
 sudo -i 
Step 3

We enter the team administrator password and we will see that the current user is now the root administrator user:

 

 

image

 

Step 4

There we can execute any command with all the permissions assigned by the system:

 

image

 

Step 5

To exit the root user, for security, we can use two ways, these are. We can see that the root session is closed and we will be with the local user again.
  • Closing the terminal directly
  • Executing the command "exit"

 

 

image

 

This is the simple method to run commands on macOS as administrator users and is ideal for support tasks.

 


by (3.5m points)

Related questions

+4 votes
1 answer
asked Mar 29, 2021 in Mac by backtothefuture (551k points) | 127 views
+5 votes
1 answer
asked Oct 8, 2020 in Mac by backtothefuture (551k points) | 253 views
+5 votes
1 answer
asked Oct 7, 2019 in Mac by backtothefuture (551k points) | 248 views
+5 votes
1 answer
asked Sep 20, 2019 in Mac by backtothefuture (551k points) | 333 views
+5 votes
1 answer
asked May 22, 2023 in Windows11 by backtothefuture (551k points) | 35 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,634 questions
10,766 answers
510 comments
3 users