mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
give a hint when people are running tor as the wrong user, rather than
telling them to start chowning random directories. svn:r5500
This commit is contained in:
parent
26b49dbc09
commit
8b0f1f029c
@ -912,7 +912,7 @@ check_private_dir(const char *dirname, cpd_check_t check)
|
||||
}
|
||||
#ifndef MS_WINDOWS
|
||||
if (st.st_uid != getuid()) {
|
||||
log(LOG_WARN, LD_FS, "%s is not owned by this UID (%d). You must fix this to proceed.", dirname, (int)getuid());
|
||||
log(LOG_WARN, LD_FS, "%s is not owned by this UID (%d). Perhaps you are running Tor as the wrong user?", dirname, (int)getuid());
|
||||
return -1;
|
||||
}
|
||||
if (st.st_mode & 0077) {
|
||||
|
Loading…
Reference in New Issue
Block a user