summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2003-12-14 04:39:23 +0000
committerRoger Dingledine <arma@torproject.org>2003-12-14 04:39:23 +0000
commit2997ef8dd9d0187d798bc69baf363b2dc8843fa0 (patch)
treefcf98339e6717124ec84440d4f3b33355b367a78
parent25e7e97d7383d2fe231b96958c25e1353fac28fe (diff)
downloadtor-2997ef8dd9d0187d798bc69baf363b2dc8843fa0.tar.gz
tor-2997ef8dd9d0187d798bc69baf363b2dc8843fa0.zip
warn if you're running tor as root
svn:r921
-rw-r--r--src/or/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index bde0f6b06f..3464e3d145 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -623,6 +623,11 @@ int tor_main(int argc, char *argv[]) {
add_stream_log(LOG_INFO, "<stdout>", stdout);
log_fn(LOG_WARN,"Tor v%s. This is experimental software. Do not use it if you need anonymity.",VERSION);
+#ifndef MS_WINDOWS
+ if(geteuid()==0)
+ log_fn(LOG_WARN,"You are running Tor as root. You don't need to, and you probably shouldn't.");
+#endif
+
if (init_from_config(argc,argv) < 0)
return -1;