aboutsummaryrefslogtreecommitdiff
path: root/doc/git-annex-enable-tor.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-12-20 17:40:36 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-12-20 17:40:36 -0400
commit5387e0e1aeee46b94ad6e0a1d59b1422a8048665 (patch)
tree6b32d4f70d9ca5dfd511e08e89caf7a7dbee525f /doc/git-annex-enable-tor.mdwn
parente493cbaace4651d5e7da26834ab108cfae3df1dc (diff)
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.
Diffstat (limited to 'doc/git-annex-enable-tor.mdwn')
-rw-r--r--doc/git-annex-enable-tor.mdwn8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/git-annex-enable-tor.mdwn b/doc/git-annex-enable-tor.mdwn
index 1c1738027..f06966400 100644
--- a/doc/git-annex-enable-tor.mdwn
+++ b/doc/git-annex-enable-tor.mdwn
@@ -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