error: "effective uid is not root"

Discussions related to using the OSE version of VirtualBox.
Locked
amazon10x
Posts: 2
Joined: 19. Sep 2008, 21:28

error: "effective uid is not root"

Post by amazon10x »

I just finished compiling vbox from svn via "kmk all" then "make install" in the "bin/src" directory. I've also chmod'd /dev/vboxdrv to 666. However, when I try to run virtual box I get the following error about not being root.

Code: Select all

user@pluto:~/vbox/out/linux.x86/release/bin$ LD_LIBRARY_PATH=. ./VirtualBox
VirtualBox: SUPR3HardenedMain: effective uid is not root (euid=1000 egid=100 uid=1000 gid=100)
amazon10x
Posts: 2
Joined: 19. Sep 2008, 21:28

Post by amazon10x »

Found the issue. I needed to configure with the switch --disable-hardening
KuleRucket
Posts: 10
Joined: 15. Jan 2009, 15:57

Post by KuleRucket »

amazon10x wrote:Found the issue. I needed to configure with the switch --disable-hardening
Thank for sharing that. I had the same problem and it's working now.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

The executable should be SUID root. You do this by executing chmod 4755 /path/to/executable
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.
kiwi
Posts: 6
Joined: 30. May 2013, 15:55

Re:

Post by kiwi »

amazon10x wrote:Found the issue. I needed to configure with the switch --disable-hardening
hi amazon10x, I have the same problem. As i'm a newbie so I do not understand what "--disable-hardening" is. Can you tell me a detailed way to do that :)
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: error: "effective uid is not root"

Post by Perryg »

kiwi wrote:
amazon10x wrote:Found the issue. I needed to configure with the switch --disable-hardening
hi amazon10x, I have the same problem. As i'm a newbie so I do not understand what "--disable-hardening" is. Can you tell me a detailed way to do that :)
Perhaps you should simply create your own thread and explain what it is you are trying to do. This thread is 4 years old and really wouldn't necessarily apply now.

Locking to prevent further discussion on an out dated topic.
Locked