[packages/mysql] Don't use /bin/sh for service account

arekm arekm at pld-linux.org
Wed Jul 12 11:20:52 CEST 2023


commit a511979e8afa75a594d39dcd88a69816fcc0369f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Jul 12 10:12:00 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 af7322d..665fda5 100644
--- a/mysql.spec
+++ b/mysql.spec
@@ -642,7 +642,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/a511979e8afa75a594d39dcd88a69816fcc0369f



More information about the pld-cvs-commit mailing list