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
nice
doesnt help
add a ‘#’ to every of the 4 lines? no issue for me..
start as “./start-tor-browser” in console ^^…running fine
Спасибо, работает.
wow…i didn’t expect the solution to come from this blog…awesome =)
thanks alot
I am glad this helps 🙂
thanks, i confirm it is a valid solution!
Thanks 😀
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?
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.
chown -R root:root ‘foldername’
Thanks saved me alot of time
Thanks ! worked out for me. you are a genius. keep it up !!
it’s work !!!
thanks bro…… 🙂
thanks!
WOW !!! FANTASTIC !!!!!!! IT WORKS!!!!!!!!!!!!!!
good work….keep it up!!!! It worked for too. thanks a lot. 🙂
it worked.. Tq U..
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
Thanks 1111
thx dude helped me out ! 🙂
wawww…thanks a lot….
But I thing this browser is slower than firefox right?
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
Спасибо заработало!!!
where can i find that file “start-tor-browser”
I was thinking that it won’t work. But it did work.. Thanks a lot..