Skip to content

Tor Browser on Ubuntu thinks httptap is running it as root #31

@ghost

Description

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.1 LTS
Release:	24.04
Codename:	noble

Ubuntu workaround suggested in the README is applied:

$ ./httptap
error creating network namespace: operation not permitted
$ sudo sysctl -w kernel.apparmor_restrict_unprivileged_unconfined=0
kernel.apparmor_restrict_unprivileged_unconfined = 0
$ sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
kernel.apparmor_restrict_unprivileged_userns = 0

The very first test example from the README works:

$ ./httptap -- curl https://monasticacademy.org
Redirecting...
---> GET https://monasticacademy.org/
<--- 308 https://monasticacademy.org/ (15 bytes)

This works and successfully starts Tor Browser

$ torbrowser-launcher 
Tor Browser Launcher
By Micah Lee & Tor Project, licensed under MIT
version 0.3.7
https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/
QSocketNotifier: Can only be used with threads started with QThread
Launching Tor Browser.
Running /home/user/.local/share/torbrowser/tbb/x86_64/tor-browser/start-tor-browser.desktop
Launching './Browser/start-tor-browser --detach'...

This does not work and prints a bit of additional text:

$ ./httptap -- torbrowser-launcher
Tor Browser Launcher
By Micah Lee & Tor Project, licensed under MIT
version 0.3.7
https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/
QSocketNotifier: Can only be used with threads started with QThread
Launching Tor Browser.
Running /home/user/.local/share/torbrowser/tbb/x86_64/tor-browser/start-tor-browser.desktop
Launching './Browser/start-tor-browser --detach'...
./Browser/start-tor-browser: line 28: [: : integer expression expected

(zenity:100439): Gtk-CRITICAL **: xx:xx:xx.xxx: Unable to connect to the accessibility bus at 'unix:path=/run/user/1000/at-spi/bus,guid=e1475649a73d8830f56f060867a5c67e': Exhausted all available authentication mechanisms (tried: EXTERNAL) (available: EXTERNAL)

Note: xx:xx:xx.xxx is an edited timestamp.

Then Tor Browser displays a dialog with the message:

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

and an OK button. When pressing OK, the command just exits with no additional text printed to terminal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions