Virtual Box is another software program that can run Linux, Windows and other operating systems on an Intel-powered Mac. The other day I was unable to launch Virtual Box, which greeted me, instead, with an “Effective UID is not root” error message:
To diagnose and fix the problem, I first checked my Console log for clues:
10/10/10 11:58:45 AM [0x0-0x1d01d].org.virtualbox.app.VirtualBox VirtualBox: supR3HardenedVerifyDir: Cannot trust the directory “/Applications/VirtualBox.app/Contents/MacOS”: group and/or other writable (st_mode=040775)
Reading the log entry, I conjectured that the problem was caused by a permissions conflict. I then did a Google search of the phrase, “Cannot trust the directory VirtualBox” and came up with the solution, which consisted of launching Terminal and using the sudo command to execute these two chmod commands:
sudo chmod 755 /Applications/VirtualBox.app/Contents/MacOS
sudo chmod 755 /Applications/VirtualBox.app/Contents/MacOS/components
As noted by the Schwie’s Pad blogger who experienced the same problem, the error was permissions-related, where the root user was erroneously assigned as owner of a directory.