Skip to content

Instantly share code, notes, and snippets.

@adityavijay21
Last active May 2, 2024 10:24
Show Gist options
  • Save adityavijay21/5559e73c2f31d350ab5eea2505ff4c33 to your computer and use it in GitHub Desktop.
Save adityavijay21/5559e73c2f31d350ab5eea2505ff4c33 to your computer and use it in GitHub Desktop.
macOS SU Password Change

macOS Admin Account Setup

Welcome to the Admin Account Setup guide! This README will assist you in configuring an admin account. Please ensure you have the necessary login credentials before proceeding.

Prerequisites

  • macOS System: Ensure you have a macOS system with admin privileges.
  • Access to Terminal: You'll need access to Terminal for executing commands.

Instructions

1. Login as Admin User

Begin by logging into your Mac as an admin user. For the sake of this guide, let's assume the admin username is admin.

2. Open Terminal

Launch Terminal on your Mac. You can find Terminal in the Utilities folder within the Applications folder.

3. Disable Root User

Enter the following command in Terminal to disable the root user:

dsenableroot -d

You'll be prompted to enter the password for the admin user. After entering the password, you'll see a confirmation message indicating that the root user has been disabled.

4. Enable Root User

Enter the following command to enable the root user:

dsenableroot

You'll be prompted again for the admin user's password. After entering it, you'll then be prompted to set a new root password. Enter your desired root password twice. You'll receive a confirmation message once the root user has been successfully enabled.

5. Remember Your New Password

It's essential to remember the new root password you've set. Ensure you keep it in a secure place for future reference.

Conclusion

Congratulations! You've successfully set up an admin account. Remember to keep your credentials secure and follow best practices for password management. If you encounter any issues or have further questions, don't hesitate to reach out for assistance.

Happy administrating! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment