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

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
This entry was posted in General stuffs and tagged , , . Bookmark the permalink.

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

  1. hello says:

    doesnt help

    • onion says:

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

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

  2. Андрей. says:

    Спасибо, работает.

  3. onion says:

    wow…i didn’t expect the solution to come from this blog…awesome =)
    thanks alot

  4. hollow says:

    Thanks 😀

  5. Marien says:

    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.


    • DATV says:

      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.

    • n00b says:

      chown -R root:root ‘foldername’

  6. anonfiend says:

    Thanks saved me alot of time

  7. Micki says:

    Thanks ! worked out for me. you are a genius. keep it up !!

  8. CyberGila says:

    it’s work !!!
    thanks bro…… 🙂

  9. confused says:


  10. mario says:

    WOW !!! FANTASTIC !!!!!!! IT WORKS!!!!!!!!!!!!!!

  11. Om Prakash says:

    good work….keep it up!!!! It worked for too. thanks a lot. 🙂

  12. Krishna Paudel says:

    it worked.. Tq U..

  13. 1111 says:

    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

  14. fesab says:

    Thanks 1111

  15. cr3000 says:

    thx dude helped me out ! 🙂

  16. pandiyan says:

    wawww…thanks a lot….
    But I thing this browser is slower than firefox right?

  17. aaaa says:

    How to fix the errors with Tor Browser

    Tor Browser Download:

    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. ”


    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

  18. Никита says:

    Спасибо заработало!!!

  19. pradip says:

    where can i find that file “start-tor-browser”

  20. BHASKAR ROY says:

    I was thinking that it won’t work. But it did work.. Thanks a lot..

Leave a Reply

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

You are commenting using your 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