Message ID | 20240410121938.2404344-1-m.perevozchikov@yadro.com |
---|---|
State | Accepted |
Headers | show |
Series | [v2] nginx: Disable login for www user | expand |
diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc b/meta-webserver/recipes-httpd/nginx/nginx.inc index f65c20971..83ae90c40 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx.inc +++ b/meta-webserver/recipes-httpd/nginx/nginx.inc @@ -186,4 +186,5 @@ USERADD_PARAM:${PN} = " \ --system --no-create-home \ --home ${NGINX_WWWDIR} \ --groups www-data \ + --shell ${base_sbindir}/nologin \ --user-group ${NGINX_USER}"
Signed-off-by: Maxim Perevozchikov <m.perevozchikov@yadro.com> --- ${NGINX_USER} must be the last paramter of useradd, so --shell specification is moved before it meta-webserver/recipes-httpd/nginx/nginx.inc | 1 + 1 file changed, 1 insertion(+)