Running VB as normal user (SUDO?)

Discussions related to using VirtualBox on Linux hosts.
Post Reply
contador
Posts: 7
Joined: 28. May 2009, 13:07
Primary OS: Other
VBox Version: OSE other
Guest OSses: xp, liunux

Running VB as normal user (SUDO?)

Post by contador »

Hello,

Hardening is enabled, so I cant run VB as a normal user.

If I put a line in the sudoers file, then I can run VB as my normal user, but Im wondering if this is safe? Is VB being run as root in this situation, or does it drop privilidges to normal user? Or should I simply recompile without hardening? Which is the safest way to run VB?

Thanks.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: Running VB as normal user (SUDO?)

Post by Sasquatch »

VB is made to be run as normal user. The executable is set UID root, so it attains root for a limited time, just to get access to the kernel module, then drops back to normal user. If you need to run VB as root with Sudo, then you need to change you system config so you don't need to.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
contador
Posts: 7
Joined: 28. May 2009, 13:07
Primary OS: Other
VBox Version: OSE other
Guest OSses: xp, liunux

Re: Running VB as normal user (SUDO?)

Post by contador »

Sasquatch,

The packages I installed were slackbuild scripts from slackbuilds.org, so I uninstalled them and instead ran 'VirtualBox-2.2.2-46594-Linux_x86.run' from virtualbox.org, and it works perfectly.

Thankyou :)
Post Reply