Debian – Run application as root without sudo

debiandebian-squeezeroot

I have an application (VirtualBox) which I need to run as root user. I can run sudo VirtualBox just fine, but I want to have a shortcut on my Desktop which I only have to click on to start VirtualBox as root user. I tried chown root:root, but that doesn't do anything.

Thanks!

Btw: I'm running Debian Squeeze.

Best Answer

You can still use sudo to run programs without having to type a password. You can do this by running the visudo command and adding a line in for VirtualBox:

sudo visudo

Add the following line to the file

yourusername ALL = NOPASSWD: /path/to/virtualbox

Then create a desktop shortcut to sudo /path/to/virtualbox and it should run as root without a password.