[HOME] [DOWNLOAD] [DOCS] [NEWS] [SUPPORT] [TIPS] [ISSUES] [DONATE]

Tor Browser Starter - BASH_COMMAND: bash -n "$i" exit_code: 126 bash: /etc/torbrowser.d/50_user.conf: Permission denied

Whonix Tester Repo:

Following TBB hardening instructions will break TBB :

debug:

user@host:~$ bash -x torbrowser
+ set -e
+ set -o pipefail
+ set -o errtrace
+ '[' -f /usr/lib/helper-scripts/pre.bsh ']'
+ source /usr/lib/helper-scripts/pre.bsh
++ set -o errtrace
+++ mktemp
++ TEMP_FILE_PRE_BSH=/tmp/tmp.2GQyHlCBhO
++ test -o xtrace
++ true 'INFO: Setting DEBDEBUG to 1, because xtrace (-x) is set.'
++ DEBDEBUG=1
++ '[' 1 = 1 ']'
++ set -x
++ colors
++ '[' xterm-256color = '' ']'
++ [[ -t 2 ]]
+++ type -t errorhandlergeneral
++ '[' '' = function ']'
+++ trap -p ERR
++ '[' '' = '' ']'
++ trap error_handler_pre ERR
++ bash -n /usr/lib/helper-scripts/pre.bsh
++ bash -n torbrowser
++ own_filename=torbrowser
++ source_config_folder
++ '[' '' = '' ']'
++ pre_bsh_settings_folder=torbrowser_pre.d
++ shopt -s nullglob
++ local i
++ true 'folder 1: /etc/torbrowser_pre.d/*.conf'
++ true 'folder 2: /usr/local/etc/torbrowser_pre.d/*.conf'
++ shopt -u nullglob
++ check_scripts_to_skip
++ local skip_script
+ '[' -n '' ']'
++ basename /usr/bin/torbrowser
+ SCRIPTNAME=torbrowser
+ '[' -n '' ']'
+ IDENTIFIER=torbrowser
+ '[' -n '' ']'
+ ICON=/usr/share/icons/anon-icon-pack/tbupdate.ico
+ trap tb_error_handler ERR
+ main_function
+ root_check
++ id -u
+ '[' 1000 '!=' 0 ']'
+ true
+ tb_preparation
++ whoami
+ who_ami=user
+ command -v qubesdb-read
+ '[' -n '' ']'
+ is_qubes=true
+ '[' -n '' ']'
++ qubesdb-read /name
+ qubes_vm_name=whonix-ws
+ '[' -n '' ']'
++ qubesdb-read /qubes-vm-type
+ qubes_vm_type=AppVM
+ '[' -n '' ']'
++ qubesdb-read /qubes-vm-persistence
+ qubes_vm_persistence=rw-only
+ '[' AppVM = TemplateVM ']'
+ '[' -n '' ']'
+ tb_user_home=/home/user
+ echo /home/user
+ grep -q tor-browser
+ '[' -n '' ']'
+ tb_install_folder=tb
+ '[' -n '' ']'
+ tb_install_folder_dot=.tb
+ '[' -n '' ']'
+ tb_browser_name=tor-browser
+ '[' -n '' ']'
+ tb_settings_folder=torbrowser.d
+ '[' -n '' ']'
+ tb_title='Tor Browser'
+ '[' -n '' ']'
+ tb_wiki=Tor_Browser
+ '[' -n '' ']'
+ tb_bin=torbrowser
+ '[' -n '' ']'
+ tb_browser_runner=start-tor-browser
+ '[' -n torbrowser ']'
+ '[' -n '' ']'
+ tb_home_folder=/home/user/.tb
+ '[' -n '' ']'
+ tb_browser_folder=/home/user/.tb/tor-browser
+ '[' -n '' ']'
+ tb_user_js_target_file=/home/user/.tb/tor-browser/Browser/TorBrowser/Data/Browser/profile.default/user.js
+ '[' '' = '' ']'
+ '[' :0 = '' ']'
+ display=:0
+ output=/usr/lib/msgcollector/msgcollector
+ local my_tty
+ local my_tty_exit_code
+ my_tty_exit_code=0
++ tty
+ my_tty=/dev/pts/0
+ '[' '!' 0 = 0 ']'
+ '[' /dev/pts/0 = '' ']'
++ whoami
+ who_ami=user
+ output_opt_1='--icon /usr/share/icons/anon-icon-pack/tbupdate.ico'
+ output_opt_2='--parentpid 19307'
+ output_opt_3='--identifier torbrowser'
+ output_opt_4='--parenttty /dev/pts/0'
+ output_opt_5='--whoami user'
+ output_opts=("$output_opt_1" "$output_opt_2" "$output_opt_3" "$output_opt_4" "$output_opt_5")
+ TITLE='Tor Browser Starter (by Whonix developers)'
+ tb_set_links
+ DOC_LINK=https://www.whonix.org/wiki/Documentation
+ CONTRIBUTE_LINK=https://www.whonix.org/wiki/Contribute
+ DONATE_LINK=https://www.whonix.org/wiki/Donate
+ FORUM_LINK=https://forums.whonix.org
+ MAILINGLIST_LINK=https://www.whonix.org/pipermail/whonix-devel/
+ IMPORTANTBLOG_LINK=https://forums.whonix.org/tags/important-news
+ FEATUREBLOG_LINK=https://forums.whonix.org/c/news
+ '[' '!' '' = '' ']'
+ '[' '!' '' = '' ']'
+ '[' '!' /usr/share/homepage/whonix-welcome-page/whonix.html = '' ']'
+ DEFAULT_LINK=/usr/share/homepage/whonix-welcome-page/whonix.html
+ open_link_confirmation_maybe_skip=true
+ tb_config_folder_parser
+ '[' -n torbrowser.d ']'
+ shopt -s nullglob
+ local i
+ for i in /etc/${tb_settings_folder}/*.conf /rw/config/${tb_settings_folder}/*.conf /usr/local/etc/${tb_settings_folder}/*.conf
+ bash -n /etc/torbrowser.d/30_default.conf
+ source /etc/torbrowser.d/30_default.conf
+ for i in /etc/${tb_settings_folder}/*.conf /rw/config/${tb_settings_folder}/*.conf /usr/local/etc/${tb_settings_folder}/*.conf
+ bash -n /etc/torbrowser.d/50_user.conf
bash: /etc/torbrowser.d/50_user.conf: Permission denied
++ tb_error_handler
++ local exit_code=126
++ local 'MSG=###########################################################
## torbrowser script bug.
## No panic. Nothing is broken. Just some rare condition
## has been hit. Try again later. There is likely a
## solution for this problem. Please see the Whonix News,
## Whonix User Help Forum and Whonix Documentation.
## https://www.whonix.org/wiki/Tor_Browser
## Please report this bug!
##
## BASH_COMMAND: bash -n "$i"
## exit_code: 126
##
## tb_browser_folder: /home/user/.tb/tor-browser
##
## tb_user_js_target_file: /home/user/.tb/tor-browser/Browser/TorBrowser/Data/Browser/profile.default/user.js
##
## output: /usr/lib/msgcollector/msgcollector
## output_opts: --icon /usr/share/icons/anon-icon-pack/tbupdate.ico --parentpid 19307 --identifier torbrowser --parenttty /dev/pts/0 --whoami user
## progressbaridx: 
##
## Experts only:
## bash -x torbrowser
###########################################################'
+++ /usr/lib/msgcollector/br_add '###########################################################
## torbrowser script bug.
## No panic. Nothing is broken. Just some rare condition
## has been hit. Try again later. There is likely a
## solution for this problem. Please see the Whonix News,
## Whonix User Help Forum and Whonix Documentation.
## https://www.whonix.org/wiki/Tor_Browser
## Please report this bug!
##
## BASH_COMMAND: bash -n "$i"
## exit_code: 126
##
## tb_browser_folder: /home/user/.tb/tor-browser
##
## tb_user_js_target_file: /home/user/.tb/tor-browser/Browser/TorBrowser/Data/Browser/profile.default/user.js
##
## output: /usr/lib/msgcollector/msgcollector
## output_opts: --icon /usr/share/icons/anon-icon-pack/tbupdate.ico --parentpid 19307 --identifier torbrowser --parenttty /dev/pts/0 --whoami user
## progressbaridx: 
##
## Experts only:
## bash -x torbrowser
###########################################################'
++ MSG='###########################################################<br />
## torbrowser script bug.<br />
## No panic. Nothing is broken. Just some rare condition<br />
## has been hit. Try again later. There is likely a<br />
## solution for this problem. Please see the Whonix News,<br />
## Whonix User Help Forum and Whonix Documentation.<br />
## https://www.whonix.org/wiki/Tor_Browser<br />
## Please report this bug!<br />
##<br />
## BASH_COMMAND: bash -n "$i"<br />
## exit_code: 126<br />
##<br />
## tb_browser_folder: /home/user/.tb/tor-browser<br />
##<br />
## tb_user_js_target_file: /home/user/.tb/tor-browser/Browser/TorBrowser/Data/Browser/profile.default/user.js<br />
##<br />
## output: /usr/lib/msgcollector/msgcollector<br />
## output_opts: --icon /usr/share/icons/anon-icon-pack/tbupdate.ico --parentpid 19307 --identifier torbrowser --parenttty /dev/pts/0 --whoami user<br />
## progressbaridx: <br />
##<br />
## Experts only:<br />
## bash -x torbrowser<br />
###########################################################'
++ '[' '' = '' ']'
++ true
++ /usr/lib/msgcollector/msgcollector --icon /usr/share/icons/anon-icon-pack/tbupdate.ico --parentpid 19307 --identifier torbrowser --parenttty /dev/pts/0 --whoami user --messagex --typex error --titlex 'Tor Browser Starter (by Whonix developers)' --message '###########################################################<br />
## torbrowser script bug.<br />
## No panic. Nothing is broken. Just some rare condition<br />
## has been hit. Try again later. There is likely a<br />
## solution for this problem. Please see the Whonix News,<br />
## Whonix User Help Forum and Whonix Documentation.<br />
## https://www.whonix.org/wiki/Tor_Browser<br />
## Please report this bug!<br />
##<br />
## BASH_COMMAND: bash -n "$i"<br />
## exit_code: 126<br />
##<br />
## tb_browser_folder: /home/user/.tb/tor-browser<br />
##<br />
## tb_user_js_target_file: /home/user/.tb/tor-browser/Browser/TorBrowser/Data/Browser/profile.default/user.js<br />
##<br />
## output: /usr/lib/msgcollector/msgcollector<br />
## output_opts: --icon /usr/share/icons/anon-icon-pack/tbupdate.ico --parentpid 19307 --identifier torbrowser --parenttty /dev/pts/0 --whoami user<br />
## progressbaridx: <br />
##<br />
## Experts only:<br />
## bash -x torbrowser<br />
###########################################################' --done
++ /usr/lib/msgcollector/msgcollector --icon /usr/share/icons/anon-icon-pack/tbupdate.ico --parentpid 19307 --identifier torbrowser --parenttty /dev/pts/0 --whoami user --messagecli --typecli error --titlecli 'Tor Browser Starter (by Whonix developers)' --message '###########################################################<br />
## torbrowser script bug.<br />
## No panic. Nothing is broken. Just some rare condition<br />
## has been hit. Try again later. There is likely a<br />
## solution for this problem. Please see the Whonix News,<br />
## Whonix User Help Forum and Whonix Documentation.<br />
## https://www.whonix.org/wiki/Tor_Browser<br />
## Please report this bug!<br />
##<br />
## BASH_COMMAND: bash -n "$i"<br />
## exit_code: 126<br />
##<br />
## tb_browser_folder: /home/user/.tb/tor-browser<br />
##<br />
## tb_user_js_target_file: /home/user/.tb/tor-browser/Browser/TorBrowser/Data/Browser/profile.default/user.js<br />
##<br />
## output: /usr/lib/msgcollector/msgcollector<br />
## output_opts: --icon /usr/share/icons/anon-icon-pack/tbupdate.ico --parentpid 19307 --identifier torbrowser --parenttty /dev/pts/0 --whoami user<br />
## progressbaridx: <br />
##<br />
## Experts only:<br />
## bash -x torbrowser<br />
###########################################################' --done
++ exit 1
user@host:~$
1 Like

Thanks! Confirmed!

Cause:

bash -n /etc/torbrowser.d/50_user.conf
bash: /etc/torbrowser.d/50_user.conf: Permission denied

This is due to:

Workaround.

sudo chmod o+r /etc/torbrowser.d/50_user.conf

Will work on a fix.

[Imprint] [Privacy Policy] [Cookie Policy] [Terms of Use] [E-Sign Consent] [DMCA] [Investors] [Priority Support] [Professional Support]