Go to folder /System/Library/CoreServices/Applications/ Open Directory Utility..
To enable the root user: Click the lock lock icon, then enter an admin user and password. Choose Edit > Enable Root User. Then enter the password that you want to use for root.
To disable the root user: Choose Edit > Disable Root User. If you log in as root, you have root privileges. Don't do this unless it is essential!
To log in as root: Get to the login window (log out, restart, or change user) Log in with the user name “root” and the password you created. If the login window is a list, click "Other" then log in. Remember to disable the root user if you don't need it any more.
My latest blog post: A Different View: People whose ideas differ aren't bad, they just have a different view. (posted 2025-07-22). Warning: mysqli_connect(): (HY000/1040): Too many connections in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 51
Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 52
Could not connect to MySQL: