diff --git a/mxqd.c b/mxqd.c index 32fbf29..cda23e8 100644 --- a/mxqd.c +++ b/mxqd.c @@ -407,7 +407,12 @@ int server_init(struct mxq_server *server, int argc, char *argv[]) } if (getuid()) { +#ifdef RUNASNORMALUSER mx_log_notice("Running mxqd as non-root user."); +#else + mx_log_err("Running mxqd as non-root user is not supported at the moment."); + exit(EX_USAGE); +#endif } res = mx_read_first_line_from_file("/proc/sys/kernel/random/boot_id", &str_bootid);