The Mac Observer

Skip navigational links

You're viewing an article in TMO's historic archive vault. Here, we've preserved the comments and how the site looked along with the article. Use this link to view the article on our current site:
Lock Down Your Root User

TMO Quick Tip - Lock Down Your Root User

by , 7:30 AM EDT, September 24th, 2007

Mac OS X may sport a friendly user interface, but it is harboring a Unix core underneath. That means the security steps Unix pros take can apply to regular Mac users as well including making sure that root, the ultimate power user on your computer, is under your control and no one else's.

By default, the root user on your Mac is disabled, but it doesn't have a password set, which is a potential security weak point. Setting a password makes it that much more difficult for bad guys to try to hack into your Mac.

I added a password to my root user account, and I also keep that user disabled. Here's how:

  • Launch NetInfo Manager. It's in Applications/Utilities.

  • NetInfo Manager
  • Click the padlock in the NetInfo Manager window and enter your administrator user name and password.
  • Choose Security > Enable Root User.

  • Enable your root user.
  • You should see an alert dialog telling you that your root user password is blank. Click OK.

  • Your Mac lets you know if you haven't set a root password yet.
  • Enter a password for your root user. Make sure it isn't a password that you are already using for another account on your Mac. Now click OK.

  • Enter a unique password for your root user.
  • Choose Security > Disable Root User.

  • Disable your root user.
  • Enter your administrator user name and password and click OK.
  • Click the padlock in the NetInfo Manager window to prevent any other changes.

Locking down your root user is important because anyone that gains root access to your Mac can do anything they want including deleting files or user accounts, installing applications without your knowledge, and siphoning off any information they want from your hard drive. That isn't likely to happen, but taking steps to help insure that it won't happen is a pretty good idea.


Jeff Gamet is TMO's Morning Editor and Reviews Editor. He lectures, teaches and speaks on Mac OS X and design-related topics, and is the author of The Designer's Guide to Mac OS X from Peachpit Press.

if you have tips or tricks to share, or Mac-related questions you want answered.

Observer Comments

Show: Subjects Only | Full Comments
Close Name:geoduck Posts: 1922 Joined: 30 Dec 2003
Subject:

Wow, I just assumed that making sure Root was disabled was enough. I guess I'll be working on my three machines tonight. thanks for the tip.

Close Name:Guest
Subject: remember?

what happens if you forget your root user password. Is it kept in keychain?

Close Name:brett_x Posts: 322 Joined: 24 Jan 2006
Subject: Good question, guest.

Quote
Guest wrote:
what happens if you forget your root user password. Is it kept in keychain?

No, it is not kept in any keychain. If you forget it, you have to boot to an OS X install CD and reset it. You can do that for any local OS X user account. If you're concerned about this ability, you should have an Open Firmware password that prevents booting from CD or any external device without [yet another] password.

Close Name:Guest
Subject:

Has anyone who is running Adobe CS3 tried this? CS3 installs as root user so that it can phone home under the radar. Check it out. On my machine CS3 is owned by System with RW access.

Close Name:RGE Posts: 165 Joined: 16 Aug 2003
Subject:

Could someone please explain how setting a password for the root account helps, if the root account is disabled anyway? The point isn't addressed in the article.

Close Name:Guest
Subject: Open Firmware password?

what is this?

Close Name:LaurieF -   TMO Forum Mod Posts: 3547 Joined: 15 Jun 2001
Subject:

http://www.apple.com/downloads/macosx/apple/firmware_hardware/openfirmwarepassword.html

Close Name:Guest
Subject: Huh?

If the root account is disabled, then logging in as root is forbidden, and if someone hacks an admin account, he/she can elevate to root anyway, which also does not require the root account to be active, so I don't understand how this hint is applicable at all.....

Close Name:Guest
Subject: Also...

One can boot into single-user mode to reset too....

Comment on this Article


You cannot edit your comments.   You cannot delete your comments.

Comments are currently closed. Please email the author instead.


Recent Headlines - Updated November 21st

Fri, 7:07 PM
Games - Soccer Sim Championship Manager 2010 Released for Mac
6:47 PM
Games - EA Publishes Original Monopoly for iPhone
6:15 PM
News - Original Apple I on Ebay for $50K, w/Letter from Steve Jobs
6:11 PM
Games - New iPhone Games: Secret of the Lost Cavern Ep 1, New DJ Nights, More
5:47 PM
Games - Star Trek D-A-C Game Headed to the Mac Next Month
4:57 PM
Product News - TidBITS Releases “Take Control of Syncing Data in Snow Leopard”
4:26 PM
John Martellaro's Blog - Particle Debris (week ending 11/20) Stationery Pads Go Poof
2:59 PM
Free on iTunes - Musée du Louvre, Art Lite, SketchBook Mobile X and More.
1:50 PM
Deal Brothers - Acer P215H bmid 21.5” Widescreen LCD Monitor:  $139.99
11:24 AM
TMO Appearances - Jeff Gamet Shares More Holiday Gift Ideas on MacJury
10:43 AM
Product News - Cocktail 4.5 for Leopard Adds QuickLook Cache Clearing
10:06 AM
News - Hack Enables Mac OS X 10.6.2 on Netbooks

The Mac Observer Reader Specials

  • __________
  • Buy Stuff, Support TMO!
  • Podcast: Mac Geek Gab
  • Podcast: Apple Weekly Report
  • TMO on Twitter!