The Tor Browser Bundle should not be run as root. Exiting.

I was trying to use TOR browser from Backtrack, however the bash script refused to let root user to use TOR. The message is like this The Tor Browser Bundle should not be run as root. Exiting.

Use the text editor and open the start-tor-browser script file. Search for the word “root”, you will see these lines:

if [ "`id -u`" -eq 0 ]; then
	complain "The Tor Browser Bundle should not be run as root.  Exiting."
	exit 1
fi

Remove or comment out the exit 1 command, exit 0 is exit normally, exit 1 means exit with an error. I need to execute tor browser and do not want the browser to exit. id -u is to find out the user, a root is the top of the user list, you can use cat /etc/passwd to verify, root’s user id is always 0 and its group id is also 0.

For my case I comment out the whole if loop.

#if [ "`id -u`" -eq 0 ]; then
	#complain "The Tor Browser Bundle should not be run as root.  Exiting."
	#exit 1
#fi

26 thoughts on “The Tor Browser Bundle should not be run as root. Exiting.

    1. add a ‘#’ to every of the 4 lines? no issue for me..

      start as “./start-tor-browser” in console ^^…running fine

  1. this is wat torbrowser says after adding that modification: ´Vidalia detected that the Tor software exited unexpectedly.
    Please check the message log for recent warning or error messages.´

    this is what the log says:

    Jul 19 11:23:30.481 [Warning] /home/marien/Downloads/tor-browser_en-US/Data/Tor is not owned by this user (root, 0) but by marien (1000). Perhaps you are running Tor as the wrong user?
    Jul 19 11:23:30.481 [Warning] Failed to parse/validate config: Couldn’t access/create private data directory “/home/marien/Downloads/tor-browser_en-US/Data/Tor”
    Jul 19 11:23:30.481 [Error] Reading config failed–see warnings above.

    anyone?

    1. SET THE OWNER OF THIS FOLDER “Desktop/tor-browser_en-US/Data/Tor” to “root” (its actual owner is postgres). You can change this property (if you have GNOME) by using the file manager nautilus.

      Thats it. It worked for me. I hope it will work for you.

  2. if anyone is still having problems, even after they commented the files, what you need to do is go to tor-browser_en_US/Data/Tor
    and then, click properties, and then click on the permissions tab, and change it so that: “root” has read and write privelages

  3. How to fix the errors with Tor Browser

    Tor Browser Download:
    https://www.torproject.org/download/d

    Extract the download:

    Open a terminal and type:

    tar -xvf tor-browser-3.6.4_en-US.tar.xz

    Fixing the fist error “The Tor Browser Bundle should not be run as root. Exiting. ”

    Type:

    leafpad start-tor-browser (you can use another editor like gedit or another isn’t necessary only leafpad)

    Now you have to look for the word root. When you find it. Now you have to change de valor 0 by 1

    Save it!

    Fixing the second error: “Tor unexpectedly exited.”

    You have to type this:

    chown -R root *

    This is for fix this problem, change to the dictory where the Tor files are

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s