How do you enable root on Yosemite?

How do you enable root on Yosemite?

Posted on Mar 15, 2017 6:32 PM

Reply
8 replies

Mar 16, 2017 11:40 AM in response to Original Karen

Do a backup before doing anything. To delete them you will need to enable the Root User and log in as the Root User. You need to be very careful while logged in as the Root User because you can delete any file and could potentially ruin your system. As soon as the non-functioning applications are deleted, log out and use your normal account. Did I mention doing a backup?


Root User

Mar 16, 2017 12:33 PM in response to Original Karen

Please do not enable 'root'.


Use the 'sudo' command instead.


sudo command args # command you want to execute as root

Password: your_accounts_password_assuming_you_are_logged_in_as_an_Admin

If you just need a root prompt for a short duration, then use


sudo -s

sudo su

sudo su -

sudo bash

sudo bash -l


all of which will give you a root prompt.


If you need to run a GUI app as root, then try


sudo open -a "Application Name"


If you are still intent on enabling the root account, then you need to give it a valid password


/System/Library/CoreServices/Applications/Directory Utility -> Edit -> Enable Root User


You can then use Directory Utility to disable the root account.

Mar 16, 2017 6:15 PM in response to Original Karen

Not true. sudo works for any admin account. The only thing disabled about the 'root' account is that it does not have a password. Otherwise the 'root' account is fully functional.


I've been able to use sudo on many different Macs, as well as Linux, AIX and Solaris Unix'y systems. I use sudo all the time as part of my job.


If you cannot use sudo, then your /etc/sudoers file has been corrupted, or you are not logged in as a Mac admin.


All that enabling root does is make your system more vulnerable to attack.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How do you enable root on Yosemite?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.