ChrisWrites.com
  • How-To
  • Latest News
  • Mac OS X
  • Safari
  • iTunes
  • iOS
ChrisWrites.com
  • How-To
  • Latest News
  • Mac OS X
  • Safari
  • iTunes
  • iOS
ChrisWrites.com
  • How-To
  • Latest News
  • Mac OS X
  • Safari
  • iTunes
  • iOS
How-To

Access every part of your Mac, by enabling the Root User

5:30 am
Add Comment
Chris
4 Min Read

Even admins can’t access every part of the Mac file system!

In particular, admins cannot move files from one user account to another, or edit another user’s files. This restriction can be frustrating if there’s an account you no longer have access to, such as a user account belonging to an ex-employee who left the company without sharing their login details.

Having access to every single user account can also come in handy if you want to sweep your entire Mac for viruses or malware, or you need to backup everything that exists across your Mac, rather than just the files inside your user account.

You can gain access to every part of your Mac that isn’t protected by System Integrity Protection (SIP), by creating a root account.

Enabling root essentially makes every part of the system accessible, but at this point it becomes much easier to damage your Mac. There’s often a reason why macOS prevents you from accessing certain files and folders, so you should only enable root if you have a specific reason for requiring this level of access.

Root can be dangerous, but if you do require root privileges, then in this article I’ll show you exactly how to get them.


Create a root user account

You create a root account, via your Mac’s System Preferences:

  • Select the β€˜Apple’ logo from your Mac’s menu bar, followed by β€˜System Preferences…’
  • Choose β€˜Users & Groups.’
  • Click the little padlock icon in the bottom-left, and enter your admin username and password when prompted.
  • Select β€˜Login Options.’
  • Click the β€˜Join…’ button.
  • In the popup that appears, select β€˜Open Directory Utility…’

  • Click the padlock, and enter your password again.
  • In the β€˜Directory Utility’ menu bar, select β€˜Edit > Enable Root User.’

  • Enter a strong password that you can definitely remember. To ensure you don’t log into the root account by accident, don’t use the same password as your regular user account. Once you’ve entered a long, complex and unique password, click β€˜OK.’ You’ve now created your root account!

Alternatively, you can enable root access from the Terminal:

  • Open a Finder window.
  • Navigate to β€˜Applications > Utilities,’ and launch the Terminal application.
  • Type the following command:

dsenableroot

  • Press the β€˜Enter’ key on your keyboard.
  • When prompted, enter your admin password, and then press the β€˜Enter’ key.
  • Type the password that you want to use for your root account, and press β€˜Enter.’
  • When prompted, enter this password again; press β€˜Enter.’

The Terminal should now display a β€˜Successfully enabled root user’ message.

Logging into your root account

You can log into your root account from macOS’ main login screen, just like any other user account:

  • Log out of your current user account.
  • On macOS’ login screen, select β€˜Other…’
  • Enter root as the username, and the password you just created.

On the surface, this account may look exactly the same as a regular user account, but files that are usually off-limits are perfectly accessible within this account – including important system files!

Since it’s much easier to delete, modify or generally break crucial files, you shouldn’t use the root account for everyday tasks. Even system admins and Mac power users are unlikely to require root access on a day-to-day basis!

You should only log into the root account when you have a task that specifically requires root privileges. As soon as you’ve finished this task, you should log out of root and back into your regular user account.

No longer require root?

If someone gained access to your root account, they could cause some serious damage to your Mac. Since root makes your Mac more vulnerable to malicious third parties, if you no longer require root privileges then you should delete this account.

To disable the root user account:

  • Navigate to β€˜System Preferences > Users & Groups.’
  • Click the padlock icon, and enter your admin password.
  • Select β€˜Login Options,’ and give the β€˜Join…’ button a click.
  • Select β€˜Open Directory Utility…’
  • Select β€˜Edit’ from the toolbar, followed by β€˜Disable Root User.’

Before you go

After spending over 20 years working with Macs, both old and new, theres a tool I think would be useful to every Mac owner who is experiencing performance issues.

CleanMyMac is highest rated all-round cleaning app for the Mac, it can quickly diagnose and solve a whole plethora of common (but sometimes tedious to fix) issues at the click of a button. It also just happens to resolve many of the issues covered in the speed up section of this site, so Download CleanMyMac to get your Mac back up to speed today.

mac-pc

Tagsenable root macos root root access root account root privilege root user terminal

You may also like

How-To

Do you really need additional RAM? Analyze your memory usage, with Activity Monitor

June 11, 2019
How-To

Convert audio files to MP3, AAC, AIFF, Apple Lossless, or WAV format

June 10, 2019
How-To

Having problems with Mojave’s Dynamic Desktop?

May 21, 2019

About the author

View All Posts

Chris

I've been a passionate evangelist for Apple and the Macintosh throughout my working life, my first love was a Quadra 605 working with a small creative agency in the south of Norfolk UK in the mid 1990's, I later progressed to other roles in other Macintosh dominated industries, first as a Senior graphic designer at a small printing company and then a production manager at Guardian Media Group. As the publishing and printing sector wained I moved into Internet Marketing and in 2006 co-founded blurtit.com which grew to become one the top 200 visited sites in the US (according to Quantcast), at its peak receiving over 15 million visits per month. For the last ten years I have worked as an Affiliate and Consultant to many different business and start ups, my key skill set being online marketing, on page monetisation, landing page optimisation and traffic generation, if you would like to hire me or discuss your current project please reach out to me here.

You can also follow me on: Twitter and Linkedin

Add Comment

Click here to post a comment

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Copyright Β© 2017.
  • Contact Me
  • Cookie Policy
  • Disclosure
  • Privacy Policy
We value your privacy
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking β€œAccept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT
Β 

Loading Comments...
Β