diff options
author | Roger Dingledine <arma@torproject.org> | 2003-12-14 04:39:23 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-12-14 04:39:23 +0000 |
commit | 2997ef8dd9d0187d798bc69baf363b2dc8843fa0 (patch) | |
tree | fcf98339e6717124ec84440d4f3b33355b367a78 /src/or | |
parent | 25e7e97d7383d2fe231b96958c25e1353fac28fe (diff) | |
download | tor-2997ef8dd9d0187d798bc69baf363b2dc8843fa0.tar tor-2997ef8dd9d0187d798bc69baf363b2dc8843fa0.tar.gz |
warn if you're running tor as root
svn:r921
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c index bde0f6b06..3464e3d14 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; |