[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #33667 [Applications/Tor Browser]: TorBrowser installer bungles permissions when umask is set
#33667: TorBrowser installer bungles permissions when umask is set
------------------------------+------------------------------------------
Reporter: sdavids | Owner: tbb-team
Type: defect | Status: new
Priority: Medium | Component: Applications/Tor Browser
Version: Tor: unspecified | Severity: Major
Keywords: | Actual Points:
Parent ID: | Points:
Reviewer: | Sponsor:
------------------------------+------------------------------------------
!TorBrowser-9.0.6-osx64_en-US
Previous versions worked OK.
As a sudoer:
Execute
{{{
# visudo
}}}
Add
{{{
Defaults umask = 0022
Defaults umask_override
}}}
Save
Execute
{{{
# sudo launchctl config user umask 002
}}}
Reboot
----
As a user:
Add to .zshrc / .bashrc
{{{
umask 077
}}}
----
References:
https://support.apple.com/en-us/HT201684
https://superuser.com/questions/79914/how-do-i-tell-sudo-to-write-files-
with-a-umask-of-0022
----
Permissions after installation via !TorBrowser-9.0.6-osx64_en-US.dmg:
{{{
# tree -p /Applications/Tor\ Browser.app
/Applications/Tor\ Browser.app
└── [drwxr-x---] Contents
├── [-rw-r-----] CodeResources
├── [-rw-r-----] Info.plist
├── [drwxr-x---] MacOS
│ ├── [drwxr-x---] Tor
│ │ ├── [drwxr-x---] PluggableTransports
│ │ │ └── [-rwxr-x---] obfs4proxy
│ │ ├── [-rwxr-x---] libevent-2.1.6.dylib
│ │ └── [-rwxr-x---] tor.real
│ ├── [-rwxr-x---] XUL
│ ├── [-rwxr-x---] firefox
│ ├── [-rwxr-x---] libfreebl3.dylib
│ ├── [-rwxr-x---] liblgpllibs.dylib
│ ├── [-rwxr-x---] libmozavcodec.dylib
│ ├── [-rwxr-x---] libmozavutil.dylib
│ ├── [-rwxr-x---] libmozglue.dylib
│ ├── [-rwxr-x---] libnss3.dylib
│ ├── [-rwxr-x---] libnssckbi.dylib
│ ├── [-rwxr-x---] libnssdbm3.dylib
│ ├── [-rwxr-x---] libplugin_child_interpose.dylib
│ ├── [-rwxr-x---] libsoftokn3.dylib
│ ├── [drwxr-x---] plugin-container.app
│ │ └── [drwxr-x---] Contents
│ │ ├── [-rw-r-----] Info.plist
│ │ ├── [drwxr-x---] MacOS
│ │ │ └── [-rwxr-x---] plugin-container
│ │ ├── [-rw-r-----] PkgInfo
│ │ ├── [drwxr-x---] Resources
│ │ │ └── [drwxr-x---] English.lproj
│ │ │ └── [-rw-r-----] InfoPlist.strings
│ │ └── [drwxr-x---] _CodeSignature
│ │ └── [-rw-r-----] CodeResources
│ └── [drwxr-x---] updater.app
│ └── [drwxr-x---] Contents
│ ├── [-rw-r-----] Info.plist
│ ├── [drwxr-x---] MacOS
│ │ └── [-rwxr-x---] org.mozilla.updater
│ ├── [-rw-r-----] PkgInfo
│ ├── [drwxr-x---] Resources
│ │ ├── [drwxr-x---] English.lproj
│ │ │ ├── [-rw-r-----] InfoPlist.strings
│ │ │ └── [drwxr-x---] MainMenu.nib
│ │ │ ├── [-rw-r-----] classes.nib
│ │ │ ├── [-rw-r-----] info.nib
│ │ │ └── [-rw-r-----] keyedobjects.nib
│ │ └── [-rw-r-----] updater.icns
│ └── [drwxr-x---] _CodeSignature
│ └── [-rw-r-----] CodeResources
├── [-rw-r-----] PkgInfo
├── [drwxr-x---] Resources
│ ├── [drwxr-x---] TorBrowser
│ │ ├── [drwxr-x---] Docs
│ │ │ ├── [-rw-r-----] ChangeLog.txt
│ │ │ └── [drwxr-x---] Licenses
│ │ │ ├── [-rw-r-----] Firefox.txt
│ │ │ ├── [-rw-r-----] HTTPS-Everywhere.txt
│ │ │ ├── [-rw-r-----] NoScript.txt
│ │ │ ├── [-rw-r-----] Noto-CJK-Font.txt
│ │ │ ├── [-rw-r-----] Noto-Fonts.txt
│ │ │ ├── [drwxr-x---] PluggableTransports
│ │ │ │ ├── [-rw-r-----] LICENSE
│ │ │ │ ├── [-rw-r-----] LICENSE.CC0
│ │ │ │ └── [-rw-r-----] LICENSE.GO
│ │ │ ├── [-rw-r-----] Tor-Launcher.txt
│ │ │ ├── [-rw-r-----] Tor.txt
│ │ │ └── [-rw-r-----] Torbutton.txt
│ │ └── [drwxr-x---] Tor
│ │ ├── [-rw-r-----] geoip
│ │ ├── [-rw-r-----] geoip6
│ │ ├── [-rwxr-x---] tor
│ │ └── [-rw-r-----] torrc-defaults
│ ├── [-rw-r-----] application.ini
│ ├── [drwxr-x---] browser
│ │ ├── [-rw-r-----] blocklist.xml
│ │ ├── [-rw-r-----] chrome.manifest
│ │ ├── [drwxr-x---] features
│ │ │ └── [-rw-r-----] onboarding@xxxxxxxxxxxxxxx
│ │ ├── [-rw-r-----] omni.ja
│ │ └── [-rw-r-----] override.ini
│ ├── [-rw-r-----] chrome.manifest
│ ├── [drwxr-x---] defaults
│ │ └── [drwxr-x---] pref
│ │ └── [-rw-r-----] channel-prefs.js
│ ├── [-rw-r-----] dependentlibs.list
│ ├── [drwxr-x---] distribution
│ │ └── [drwxr-x---] extensions
│ │ ├── [-rw-r-----] https-everywhere-eff@xxxxxxxxxxx
│ │ └── [-rw-r-----] {73a6fe31-595d-460b-a920-fcc0f8843232}.xpi
│ ├── [-rw-r-----] document.icns
│ ├── [drwxr-x---] en.lproj
│ │ └── [-rw-r-----] InfoPlist.strings
│ ├── [-rw-r-----] firefox.icns
│ ├── [drwxr-x---] fonts
│ │ ├── [-rw-r-----] NotoSansArmenian-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansBengali-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansBuginese-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansCanadianAboriginal-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansCherokee-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansDevanagari-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansEthiopic-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansGujarati-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansGurmukhi-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansKannada-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansKhmer-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansLao-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansMalayalam-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansMongolian-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansMyanmar-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansOriya-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansSinhala-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansTamil-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansTelugu-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansThaana-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansTibetan-Regular.ttf
│ │ ├── [-rw-r-----] NotoSansYi-Regular.ttf
│ │ └── [-rw-r-----] STIXMath-Regular.otf
│ ├── [-rw-r-----] omni.ja
│ ├── [-rw-r-----] platform.ini
│ ├── [-rw-r-----] precomplete
│ ├── [-rw-r-----] removed-files
│ ├── [drwxr-x---] res
│ │ ├── [drwxr-x---] MainMenu.nib
│ │ │ ├── [-rw-r-----] classes.nib
│ │ │ ├── [-rw-r-----] info.nib
│ │ │ └── [-rw-r-----] keyedobjects.nib
│ │ ├── [drwxr-x---] cursors
│ │ │ ├── [-rw-r-----] arrowN.png
│ │ │ ├── [-rw-r-----] arrowN@xxxxxx
│ │ │ ├── [-rw-r-----] arrowS.png
│ │ │ ├── [-rw-r-----] arrowS@xxxxxx
│ │ │ ├── [-rw-r-----] cell.png
│ │ │ ├── [-rw-r-----] cell@xxxxxx
│ │ │ ├── [-rw-r-----] colResize.png
│ │ │ ├── [-rw-r-----] colResize@xxxxxx
│ │ │ ├── [-rw-r-----] help.png
│ │ │ ├── [-rw-r-----] help@xxxxxx
│ │ │ ├── [-rw-r-----] move.png
│ │ │ ├── [-rw-r-----] move@xxxxxx
│ │ │ ├── [-rw-r-----] rowResize.png
│ │ │ ├── [-rw-r-----] rowResize@xxxxxx
│ │ │ ├── [-rw-r-----] sizeNE.png
│ │ │ ├── [-rw-r-----] sizeNE@xxxxxx
│ │ │ ├── [-rw-r-----] sizeNESW.png
│ │ │ ├── [-rw-r-----] sizeNESW@xxxxxx
│ │ │ ├── [-rw-r-----] sizeNS.png
│ │ │ ├── [-rw-r-----] sizeNS@xxxxxx
│ │ │ ├── [-rw-r-----] sizeNW.png
│ │ │ ├── [-rw-r-----] sizeNW@xxxxxx
│ │ │ ├── [-rw-r-----] sizeNWSE.png
│ │ │ ├── [-rw-r-----] sizeNWSE@xxxxxx
│ │ │ ├── [-rw-r-----] sizeSE.png
│ │ │ ├── [-rw-r-----] sizeSE@xxxxxx
│ │ │ ├── [-rw-r-----] sizeSW.png
│ │ │ ├── [-rw-r-----] sizeSW@xxxxxx
│ │ │ ├── [-rw-r-----] vtIBeam.png
│ │ │ ├── [-rw-r-----] vtIBeam@xxxxxx
│ │ │ ├── [-rw-r-----] zoomIn.png
│ │ │ ├── [-rw-r-----] zoomIn@xxxxxx
│ │ │ ├── [-rw-r-----] zoomOut.png
│ │ │ └── [-rw-r-----] zoomOut@xxxxxx
│ │ └── [drwxr-x---] touchbar
│ │ ├── [-rwxr-x---] back.pdf
│ │ ├── [-rwxr-x---] bookmark-filled.pdf
│ │ ├── [-rwxr-x---] bookmark.pdf
│ │ ├── [-rwxr-x---] forward.pdf
│ │ ├── [-rwxr-x---] fullscreen.pdf
│ │ ├── [-rwxr-x---] home.pdf
│ │ ├── [-rwxr-x---] new.pdf
│ │ ├── [-rwxr-x---] reader-mode.pdf
│ │ ├── [-rwxr-x---] refresh.pdf
│ │ ├── [-rwxr-x---] search.pdf
│ │ ├── [-rwxr-x---] share.pdf
│ │ ├── [-rwxr-x---] sidebar-left.pdf
│ │ └── [-rwxr-x---] sidebar-right.pdf
│ ├── [-rw-r-----] tbb_version.json
│ ├── [-rw-r-----] update-settings.ini
│ └── [-rw-r-----] updater.ini
└── [drwxr-x---] _CodeSignature
└── [-rw-r-----] CodeResources
36 directories, 143 files
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33667>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs