Problem getting VirtualBox to run

Discussions related to using VirtualBox on Mac OS X hosts.
Juta
Posts: 4
Joined: 10. Nov 2019, 12:36

Re: Problem getting VirtualBox to run

Post by Juta »

Hello socratis,

Yes, I've done sudo chmod 755 /Applications/ , but hen I try to open VirtuaBox apears this error message:
Effective UID is not root (euid=501 egid=20 uid=501 gid=20) (rc=-10)

Please try reinstalling VirtualBox.

where: SUPR3HardenedMain what: 2 VERR_PERMISSION_DENIED (-10) - Permission denied.
Could you please tell me how can I solve this?

Regards,
Juta
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Problem getting VirtualBox to run

Post by socratis »

Run the following command in the Terminal, then Copy/Paste the output inside the

Code: Select all

 tag:
[list][pre][color=#800080]
ls -al /Applications[/color][/pre][/list]
You will find that the "user:group" is not "root:wheel" or "<admin>:admin", as they should be...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Juta
Posts: 4
Joined: 10. Nov 2019, 12:36

Re: Problem getting VirtualBox to run

Post by Juta »

Hi again socratis,

Code: Select all

ls -la /Applications/

total 40
drwxrwxrwx+ 42 root           admin   1428 Dec  9 14:17 .
drwxr-xr-x  33 root           wheel   1190 Nov 24 11:18 ..
-rwxrwxrwx   1 root           admin  16388 Dec  9 13:34 .DS_Store
-rwxrwxrwx   1 root           wheel      0 Aug  2  2015 .localized
drwxrwxrwx@  3 root           wheel    102 Jun 17  2015 App Store.app
drwxrwxrwx@  3 root           wheel    102 May  8  2015 Automator.app
drwxrwxrwx@  3 root           wheel    102 Aug  2  2015 Calculator.app
drwxrwxrwx@  3 root           wheel    102 Nov 10 13:15 Calendar.app
drwxrwxrwx@  3 root           wheel    102 Aug  2  2015 Chess.app
drwxrwxrwx@  3 root           wheel    102 Jun 20  2015 Contacts.app
drwxrwxrwx@  3 root           wheel    102 Sep 16  2015 DVD Player.app
drwxrwxrwx@  3 root           wheel    102 Aug  2  2015 Dashboard.app
drwxrwxrwx@  3 root           wheel    102 Oct 24  2015 Dictionary.app
drwxrwxrwx@  3 root           wheel    102 Jun 13  2016 FaceTime.app
drwxrwxrwx@  3 root           wheel    102 May  8  2015 Font Book.app
drwxrwxrwx@  3 root           wheel    102 May  5  2015 Game Center.app
drwxrwxrwx@  3 root           wheel    102 Aug  2  2015 Image Capture.app
drwxrwxrwx@  3 root           wheel    102 Aug  2  2015 Launchpad.app
drwxrwxrwx@  3 root           wheel    102 Nov 10 13:15 Mail.app
drwxrwxrwx@  3 root           wheel    102 Feb 21  2016 Maps.app
drwxrwxrwx   4 root           admin    136 Nov  7 17:48 Mediatek Wireless Utility
drwxrwxrwx@  3 root           wheel    102 May  7  2012 Messages.app
drwxrwxrwx@  3 root           wheel    102 Aug  2  2015 Mission Control.app
drwxrwxrwx@  3 root           wheel    102 Feb 15  2016 Notes.app
drwxrwxrwx@  3 root           wheel    102 Aug  7  2015 Photo Booth.app
drwxrwxrwx@  3 root           wheel    102 Feb 14  2016 Photos.app
drwxrwxrwx@  3 root           wheel    102 Nov 10 13:15 Preview.app
drwxrwxrwx@  3 root           wheel    102 Jun 24  2016 QuickTime Player.app
drwxrwxrwx   5 root           admin    170 Nov  7 18:56 Ralink Wireless Utility
drwxrwxrwx@  3 root           wheel    102 Nov 10 13:15 Reminders.app
drwxrwxrwx@  3 root           wheel    102 Nov 10 17:07 Safari.app
drwxrwxrwx@  3 root           wheel    102 Aug  2  2015 Stickies.app
drwxrwxrwx@  3 root           wheel    102 Oct 27  2015 System Preferences.app
drwxrwxrwx   3 root           wheel    102 Oct 10 16:53 TeamViewer.app
drwxrwxrwx@  3 root           wheel    102 Aug  2  2015 TextEdit.app
drwxrwxrwx@  3 root           wheel    102 Aug  2  2015 Time Machine.app
drwxrwxrwx+ 22 root           admin    748 Nov  5 20:58 Utilities
drwxr-xr-x   3 root           admin    102 Dec  9 14:17 VirtualBox.app
drwxrwxrwx+  3 root           wheel    102 May  8  2016 iBooks.app
drwxrwxrwx   3 root           wheel    102 Nov 10 13:15 iTunes.app
and

Code: Select all

ls -la /Applications/VirtualBox.app/

total 0
drwxr-xr-x   3 root  admin   102 Dec  9 14:17 .
drwxrwxrwx+ 42 root  admin  1428 Dec  9 14:17 ..
drwxr-xr-x   9 root  admin   306 Oct 15 14:00 Contents
Juta
Posts: 4
Joined: 10. Nov 2019, 12:36

Re: Problem getting VirtualBox to run

Post by Juta »

and the error is the same:
Apertura di una sessione per la Macchina Virtuale Windows 7 non riuscita.

The virtual machine 'Windows 7' has terminated unexpectedly during startup with exit code 1 (0x1).

Codice di uscita:NS_ERROR_FAILURE (0x80004005)
Componente: MachineWrap
Interfaccia: IMachine {5047460a-265d-4538-b23e-ddba5fb84976}
:(
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Problem getting VirtualBox to run

Post by socratis »

Juta wrote:and the error is the same
I'm sorry, but the error is not the same this time.

But, your "/Applications/" folder seems to be still messed up, it is still world-writable. Here's what your permissions for the "/Applications/" folder mean:
drwxrwxrwx+ 42 root   admin   1428 Dec  9 14:17 .
 ^^^^^^^^^
  |  |  |
  |  | rwx ---- The World has Read/Write/eXecute rights
  | rwx ------- The Group has Read/Write/eXecute rights
 rwx ---------- The Owner has Read/Write/eXecute rights
Compare it with mine:
$ ls -al /Applications/
total 32
drwxrwxr-x+ 60 root   admin  2040 14 Δεκ 12:35 .
drwxr-xr-x  32 root   wheel  1156 10 Οκτ 06:17 ..
...
drwxr-xr-x   3 root   admin   102 14 Δεκ 12:36 VirtualBox.app
Here's a recipe that might work. Uninstall VirtualBox. Do a:
  • 
    sudo chmod -R 755 /Applications/
and then re-install VirtualBox.

Since your system is quite messed up, I take no responsibility as to what might happen in the long run. Your best option would be to backup your documents and do a clean re-install of OSX.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
jlatx
Posts: 1
Joined: 24. Jul 2023, 20:46

Re: Problem getting VirtualBox to run

Post by jlatx »

Hi there,

I managed to get VirtualBox 7.0.10 working for a non-Administrator user on my Intel MacMini running MacOS X Ventura.
Here is the trick:
  1. You have to make sure that VirtualBox.app has full Disk Access in Privacy & Security settings (use [+] to add VirtualBox.app to the list if not shown).
  • Than you have to change every file permissions on Other (world) field to be the same as the Group one (see post above from socratis). To do so, open Terminal.app with your non-Administrator user. Log on Administrator user:

    Code: Select all

    % su <your-admin-user>
    Logon root user (ignore "The default interactive shell is now zsh." alert message):

    Code: Select all

    % sudo bash
    Than issue

    Code: Select all

    # ls -alR /Applications/VirtualBox.app/Contents/
    Seek for -rw-r----- and in particular any file or directory having a different permission on other field (last 3 digits) than group field. For those issue (where <same-as-group> could be rwx):

    Code: Select all

    # chmod o+<same-as-group> <filename>
    Example (wildcard * is for any file ending with .d extension):

    Code: Select all

    # chmod o+r /Applications/VirtualBox.app/Contents/MacOS/dtrace/testcase/amd64/*.d
    When every is over, logoff twice using <crtl>D.
I hope this will help you!
Post Reply