Page 1 of 1
[Solved] Setting permisions to /dev/vboxdrv again and again
Posted: 7. Jul 2008, 13:30
by ouro
I'm using 1.6.2 OSE version over Ubuntu 8.04. I've added "vboxdrv" to /etc/modules to driver be loaded each time I start the computer but I have to change group using "chown" anyway. Are there any way to set group automatically??..
thnx.
Posted: 7. Jul 2008, 19:02
by Sasquatch
Are you a member of the vboxusers group? Do that first, then come back here if you still have problems. The owner should be root:vboxusers.
Adding yourself to vboxusers group, run the next command in a terminal:
Code: Select all
usermod -aG vboxusers <your username>
Posted: 7. Jul 2008, 23:17
by ouro
sorry, sasquatch. I think my explanation wasn't very clear. I already am in the vboxusers group. My problems is that when I start computer module loads with root:root permisions but I need to change :root group to :vboxusers to my user can start a virtual machine.
Posted: 7. Jul 2008, 23:55
by Sasquatch
Then remove the vboxdrv module that you added. It is not needed, it's started automatically by the /etc/init.d/vboxdrv script. There is a reason why there is a boot entry called "Running init scripts". That starts every script that is found in /etc/init.d/. Why did you add the module in the first place?
Posted: 8. Jul 2008, 00:04
by ouro
I've compiled my own version of virtualbox and I haven't any script in /etc/init.d.
Posted: 7. Aug 2008, 14:03
by ouro
I solve this cuestion creating a new file: /etc/udev/rules.d/60-vboxdrv.rules with the next line:
Code: Select all
KERNEL=="vboxdrv" , NAME="vboxdrv", OWNER="root", GROUP="vboxusers", MODE="0660"