Score:3

Running Virtualbox 6.1.22 on Ubunti 21.04, I get 'Effective UID is not root' every time it try to start a VM

br flag

I'm running Ubuntu 21.04 with the default Virtualbox that comes with Ubuntu. VirtualBox Graphical User Interface Version 6.1.22_Ubuntu r144080 .

It starts up fine, but when I try to start a VM, I get:

Effective UID is not root (euid=1000 egid=1000 uid=1000 gid=1000) (rc=-10)
Please try reinstalling VirtualBox.
where: SUPR3HardenedMain what: 2 VERR_PERMISSION_DENIED (-10) - Permission denied.

So, I tried reinstalling Virtualbox. No dice, I get the same error. So, I tried sudo chown 4755 /usr/lib/virtualbox/Virtualbox, but then I got the error saying that running as root was a no-no, due to security, which makes sense.

So, help? Any ideas?

Additional information, if I run on:

sudo virtualbox it seems to work fine.

More additional info:

I filed a bug on this against Virtualbox on Ubuntu 21.04. It is now confirmed. No ETA on a fix.

nobody avatar
gh flag
can you show `ls -al /usr/lib/virtualbox/` Maye some stickybit are not set.
Score:2
br flag

I found the answer from someone via email, through the bug I entered on Launchpad.

The answer is:

sudo chmod u+s /usr/lib/virtualbox/VirtualBoxVM
nobody avatar
gh flag
Yeah that I was after.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.