Make Linux TBB not fail in a non-obvious manner when run as root
Currently, the Linux Tor Browser Bundle tarball contains files owned by a non-root user and its corresponding group. This causes TBB to fail to run when it is unpacked and run by root (Tor sees that its DataDirectory is not owned by the user that it is running as and refuses to run). Regardless of how absurdly bad an idea running TBB as root is, it shouldn't fail in such a non-obvious manner.
There are two not-mutually-exclusive ways to fix this:
- Set the owner and group of every file/directory in the Linux TBB tarball to
root:wheel(UID and GID 0).
- Add an explicit check to
start-tor-browserto detect that TBB is being run as root and refuse to run, with a meaningful error message.