Skip to content

Commit f5e3765

Browse files
committed
fpm: Improve the error message when FPM is running as root
1 parent d246584 commit f5e3765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fpm/fpm/fpm_conf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ static int fpm_conf_process_all_pools(void)
859859

860860
/* alert if user is not set; only if we are root and fpm is not running with --allow-to-run-as-root */
861861
if (!wp->config->user && !geteuid() && !fpm_globals.run_as_root) {
862-
zlog(ZLOG_ALERT, "[pool %s] user has not been defined", wp->config->name);
862+
zlog(ZLOG_ALERT, "[pool %s] FPM is running as root and the user directive has not been specified, refusing to run for security reasons. Specify either a pool-specific user directive or pass the --allow-to-run-as-root flag.", wp->config->name);
863863
return -1;
864864
}
865865

0 commit comments

Comments
 (0)