LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2022, 03:20 PM   #1
foyle
LQ Newbie
 
Registered: May 2020
Posts: 5

Rep: Reputation: Disabled
Smile Tor browser


Hello everyone,
my problem is:I have just installed a Peppermint distribution(the last one)on my laptop, and I have copied from an usb key all the Tor folder and .tar file, a thing that I have already done on another computer and it worked(in the sense that Tor starts without any problem), but it does not work now.If I try to run Tor - from the shell -I always get that the permission is denied. I tried with sudo bash with no result. I cannot use the su command because it needs another password that I have not because during the installation it was not requested(only a password to log in that is the same for a root user on the shell).
Any idea on how can I get out of this annoying issue?
Regards, foyle
 
Old 05-12-2022, 06:26 PM   #2
friendly_hecker
LQ Newbie
 
Registered: Dec 2021
Distribution: kali
Posts: 2

Rep: Reputation: Disabled
It seems that you tor files does not have execution privileges, if that's the case, you can fix it with
sudo chmod -R +x /tor_folder
 
1 members found this post helpful.
Old 05-13-2022, 06:23 AM   #3
foyle
LQ Newbie
 
Registered: May 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Smile Done

Thank you my dear, you are really friendly. Now that I have my problem solved, I have one last question: Tor cannot it be run as root? Or there is a way to do it?
Thak you again
 
Old 05-13-2022, 06:48 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,876

Rep: Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314
theoretically tor must not be run as root. Why do you want to do that?
 
Old 05-13-2022, 08:55 AM   #5
foyle
LQ Newbie
 
Registered: May 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Smile root

I do no want to do that just for the sake of it, but to increase my knowledge of Linux stuff: when I was putting in the shell the command that you advised me to do I had the root privileges, and it popped up a message stating that Tor should not be run as root, and it was that warning that triggered my curiosity. Theoretically not, but actually yes, is that right?
 
Old 05-13-2022, 09:07 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,876

Rep: Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314
the story is the following:
many people use root account out of laziness, and this is definitely bad practice (and insecure). Some other peoples started to add user check to their software to avoid that situation.
So it's not really needed and tor probably runs perfectly as root, but the risk of a "strange" happening is relatively high, therefore it is explicitly blocked.
 
1 members found this post helpful.
Old 05-13-2022, 12:25 PM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by friendly_hecker View Post
It seems that you tor files does not have execution privileges, if that's the case, you can fix it with
sudo chmod -R +x /tor_folder
What horrible advice! Simply make everything executable, in a browser's profile, probably accessible by scripts from the www???

That said, since TOR Browser is meant to be run unaltered anyhow, why don't you (OP) simply start from scratch?

I'm also skeptical about "the last" Peppermint download; isn't that in alpha/beta state still?
 
1 members found this post helpful.
Old 05-14-2022, 12:52 AM   #8
linux-man
Member
 
Registered: Nov 2016
Location: Geneva
Distribution: native install of Parrot Home Edition 5.0 Debian (no security tools) 64 bit, KDE, 5.14.0-9parrot1,
Posts: 872

Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
...
many people use root account out of laziness, and this is definitely bad practice (and insecure).
How can I tell if I am in root if I am in GUI?


Quote:
Originally Posted by pan64 View Post
Some other peoples started to add user check to their software to avoid that situation.
Which software?
 
Old 05-14-2022, 01:12 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by linux-man View Post
How can I tell if I am in root if I am in GUI?
Because you did it on purpose.

With very few exceptions where you'll be told what'as happening, and asked for a password or at the very least confirmation.
 
Old 05-14-2022, 01:55 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,876

Rep: Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314Reputation: 7314
Quote:
Originally Posted by linux-man View Post
How can I tell if I am in root if I am in GUI?
because you must not start gui as root, but regular user. You will only switch to root if really required (= on purpose).
Quote:
Originally Posted by linux-man View Post
Which software?
There are several software which check the current user id and act on it. Like tor. I can't list all of them
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice on Adapting Transports from Tor Browser Bundle to Tor? Nonetas Linux - Security 0 01-22-2018 03:45 PM
Tor Browser Bundle/Tor and IPTables: Working Solution Sought Nonetas Linux - Security 1 01-14-2018 06:23 PM
LXer: Tails 2.6 Anonymous Linux Live CD Is Out, Brings Tor 0.2.8.7 and Tor Browser 6.0.5 LXer Syndicated Linux News 0 09-21-2016 01:32 AM
LXer: Tor Browser 4.5.2 Is Out with the Latest Tor Anonymity Network Software LXer Syndicated Linux News 0 06-17-2015 02:40 PM
LXer: Tor Browser Bundle-Tor Goes Portable LXer Syndicated Linux News 1 09-02-2011 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration