Mailinglist Archive: opensuse-bugs (4295 mails)

< Previous Next >
[Bug 1038740] mysql-community-server (5.6.36-24.3.3): Wrong permission on directory /var/run/mysql
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Wed, 17 May 2017 10:27:10 +0000
  • Message-id: <bug-1038740-21960-JwohvYe5Qu@http.bugzilla.suse.com/>
http://bugzilla.suse.com/show_bug.cgi?id=1038740
http://bugzilla.suse.com/show_bug.cgi?id=1038740#c3

Kristyna Streitova <kstreitova@xxxxxxxx> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |CONFIRMED

--- Comment #3 from Kristyna Streitova <kstreitova@xxxxxxxx> ---
Hello all,

thank you for your reports. You are completely right. The commit [1]
unfortunately caused that /var/run/mysql is created with permissions 700
instead of 755 which prevents non-root from connecting.

This can be easily fixed just by adding chmod after mkdir call into the
mysql-systemd-helper script:

--- /usr/lib/mysql/mysql-systemd-helper_old 2017-05-17 11:39:07.245032000
+0200
+++ /usr/lib/mysql/mysql-systemd-helper 2017-05-17 11:45:45.237079394 +0200
@@ -173,6 +173,8 @@
INSTANCE="$2"
read_config
mkdir -p /var/run/mysql
+# fix permissions for /var/run/mysql (bsc#1038740)
+chmod 755 /var/run/mysql
chown --no-dereference "$mysql_daemon_user:$mysql_daemon_group" /var/run/mysql
case "$1" in
install)

I will start and update for Tumbleweed and Leap.


[1]
https://github.com/openSUSE/mysql-packaging/commit/6f7fd75d78ab817b8db53be8238d0eaf26e250de

--
You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >