[packages/mysql/MYSQL_5_7] Don't use /bin/sh for service account
arekm
arekm at pld-linux.org
Wed Jul 12 11:19:57 CEST 2023
commit 4be25ba9ec13ac01573047c6f2abf760a2c17ca7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Wed Jul 12 10:11:38 2023 +0200
Don't use /bin/sh for service account
mysql.spec | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/mysql.spec b/mysql.spec
index d853f7e..48ceb15 100644
--- a/mysql.spec
+++ b/mysql.spec
@@ -647,7 +647,7 @@ rm -rf $RPM_BUILD_ROOT
%pre
%groupadd -g 89 mysql
-%useradd -u 89 -d %{_mysqlhome} -s /bin/sh -g mysql -c "MySQL Server" mysql
+%useradd -u 89 -d %{_mysqlhome} -s /bin/false -g mysql -c "MySQL Server" mysql
%post
/sbin/ldconfig
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mysql.git/commitdiff/4be25ba9ec13ac01573047c6f2abf760a2c17ca7
More information about the pld-cvs-commit
mailing list