Ubuntu – Give VirtualBox access to specific users only


I have installed VirtualBox on an Ubuntu Server installation, and I have created a user on that server named ram.

I want to give access to VirtualBox and its programs and operations only to the root user and the user named ram.

What do I have to do to set this kind of restricted access for VirtualBox?

Best Answer

On Ubuntu, only superuser and members of vboxusers can use Vbox by default. You can add users to the vboxusers group with the following command:

sudo usermod -a -G vboxusers username

This will give that user permission to run VirtualBox machines.