enable-tor: No longer needs to be run as root.
When run by not root, su's to root automatically. This commit was sponsored by Brock Spratlen on Patreon.
This commit is contained in:
parent
944a6503b9
commit
f7ca2b92fb
6 changed files with 92 additions and 6 deletions
|
@ -4,14 +4,18 @@ git-annex enable-tor - enable tor hidden service
|
|||
|
||||
# SYNOPSIS
|
||||
|
||||
git annex enable-tor
|
||||
|
||||
sudo git annex enable-tor $(id -u)
|
||||
|
||||
# DESCRIPTION
|
||||
|
||||
This command enables a tor hidden service for git-annex.
|
||||
|
||||
It has to be run by root, since it modifies `/etc/tor/torrc`.
|
||||
Pass it your user id number, as output by `id -u`
|
||||
It modifies `/etc/tor/torrc` to register the hidden service. If run as a
|
||||
normal user, it will try to use sudo/su/etc to get root access to modify
|
||||
that file. If you run it as root, pass it your non-root user id number,
|
||||
as output by `id -u`
|
||||
|
||||
After this command is run, `git annex remotedaemon` can be run to serve the
|
||||
tor hidden service, and then `git-annex p2p --gen-address` can be run to
|
||||
|
|
|
@ -23,7 +23,7 @@ to accomplish this.
|
|||
|
||||
In each git-annex repository, run these commands:
|
||||
|
||||
sudo git annex enable-tor $(id -u)
|
||||
git annex enable-tor
|
||||
git annex remotedaemon
|
||||
|
||||
Now git-annex is running as a Tor hidden service, but
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue