How do I login as root on Mac?

How do I login as root on Mac?
Answer
Enable or disable the root user
  1. Choose Apple menu () > System Preferences, then click Users & Groups (or Accounts).
  2. Click , then enter an administrator name and password.
  3. Click Login Options.
  4. Click Join (or Edit).
  5. Click Open Directory Utility.
Photo in the article by “Wikimedia Commons”
Code:
https://commons.wikimedia.org/wiki/File:Debian_root_user.png
Method 2 Enabling the Root User
  • Press Ctrl + Alt + T to open a terminal window.
  • Type sudo passwd root and press ↵ Enter .
  • Enter a password, then press ↵ Enter .
  • Retype the password when prompted, then press ↵ Enter .
  • Type su – and press ↵ Enter .
 

Tìm kiếm

Back
Top