How to change the root password on Mac OS

In brief the steps are as follows;

  • log in to the macOS Unix server using ssh or console or terminal
  • Open a shell prompt/terminal and type the passwd command to change root password

ssh [email protected]

user$ sudo passwd root

First you need to type the password for the user. After that the passwd command asks for the new password, which you will have to enter two times:

The next time you log in to a macOS Unix server, use the new password for root user.

Author: Chathura Ariyadasa

A highly talented IT professional with extensive experience and capabilities in performing a variety of IT Security, Computer Networking and IT Help Desk duties and responsibilities in the IT Department.