mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
better error message when you set User but start tor as non-root.
hopefully will address bug 857. svn:r17232
This commit is contained in:
parent
4d8799b987
commit
0554e87f58
@ -1052,7 +1052,8 @@ switch_id(const char *user)
|
||||
|
||||
/* Properly switch egid,gid,euid,uid here or bail out */
|
||||
if (setgroups(1, &pw->pw_gid)) {
|
||||
log_warn(LD_GENERAL, "Error setting groups to gid %d: %s",
|
||||
log_warn(LD_GENERAL, "Error setting groups to gid %d: \"%s\". "
|
||||
"If you set the \"User\" option, you must start Tor as root.",
|
||||
(int)pw->pw_gid, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user