mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
warn if you're running tor as root
svn:r921
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user