I want to execute a command as if I am my normal user, but I want to have root certain permissions. In particular, I have created a phyiscal VirtualBox drive that I want to use as a normal user.
sudo to VirtualBox, but that gives an unconfigured VirtualBox. On the other hand, if I want to add my raw image (create by
VBoxManage internalcommands createrawvmdk -filename /path/to/file.vmdk -rawdisk /dev/sda as per documentation) as the drive for a virtual machine it gives me a permission error.
So basically I have this: Multiple virtual machines, all with virtual drives in
vmdk images. Now I want to have another VM, but this time with a phyiscal drive and I need my normal user to have permissions to do this (possibly with entering my passwort to give it root access, my main concern is that it should execute as a specific user and not as root, although it has root permissions).
Is this at all possible? If so, how?