[MDEV-18059] `support-files/mysql.server.sh stop` must run as root Created: 2018-12-21  Updated: 2019-01-23  Resolved: 2019-01-23

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Scripts & Clients
Affects Version/s: 5.5.62, 10.0.37, 10.3.11, 10.1.37, 10.2.19
Fix Version/s: 10.1.38, 5.5.63, 10.0.38, 10.2.22, 10.3.13

Type: Bug Priority: Critical
Reporter: Andrew Garner Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None


 Description   

The change to run "kill" via "su - $user" seems to require mysql.server to run as root now. We run "mysql.server stop" under an unprivileged user account, and upgrading to mysql 10.1.37 broke our workflow as the "su - $user" bit fails as a non-root user.

Is it possible that this script can skip the "su - $user" step if invoked as a non-root user?


Generated at Thu Feb 08 08:41:11 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.