diff options
author | lenz@mysql.com <> | 2005-07-15 09:07:33 +0200 |
---|---|---|
committer | lenz@mysql.com <> | 2005-07-15 09:07:33 +0200 |
commit | 0487cb938e17a2334fb2890b891d1d8325229104 (patch) | |
tree | 9f6e6825f03a640b4b76609489734d83562d5126 /support-files | |
parent | 07d4f27195efc64cba7af16cf07e54ea545599d2 (diff) | |
parent | 0d7a2641b5c05a2e90ca04bb1002be1c7d63ab69 (diff) | |
download | mariadb-git-0487cb938e17a2334fb2890b891d1d8325229104.tar.gz |
- manual merge of the fix for BUG#10984: create a "mysql" user group and assign the
mysql user account to that group in the server postinstall section of the RPM spec
file
Diffstat (limited to 'support-files')
-rw-r--r-- | support-files/mysql.spec.sh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/support-files/mysql.spec.sh b/support-files/mysql.spec.sh index 2e4f7d12573..7dc04c39225 100644 --- a/support-files/mysql.spec.sh +++ b/support-files/mysql.spec.sh @@ -437,19 +437,20 @@ then /sbin/chkconfig --add mysql fi -# Create a MySQL user. Do not report any problems if it already -# exists. This is redhat specific and should be handled more portable -useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" %{mysqld_user} 2> /dev/null || true +# Create a MySQL user and group. Do not report any problems if it already +# exists. +groupadd -r -c "MySQL server" %{mysqld_user} 2> /dev/null || true +useradd -M -r -d $mysql_datadir -s /bin/bash -c "MySQL server" -g %{mysqld_user} %{mysqld_user} 2> /dev/null || true # Change permissions so that the user that will run the MySQL daemon # owns all database files. -chown -R %{mysqld_user} $mysql_datadir +chown -R %{mysqld_user}:%{mysqld_user} $mysql_datadir # Initiate databases %{_bindir}/mysql_install_db --rpm --user=%{mysqld_user} # Change permissions again to fix any new files. -chown -R %{mysqld_user} $mysql_datadir +chown -R %{mysqld_user}:%{mysqld_user} $mysql_datadir # Fix permissions for the permission database so that only the user # can read them. @@ -667,6 +668,11 @@ fi # itself - note that they must be ordered by date (important when # merging BK trees) %changelog +* Fri Jul 15 2005 Lenz Grimmer <lenz@mysql.com> + +- create a "mysql" user group and assign the mysql user account to that group + in the server postinstall section. (BUG 10984) + * Tue Jun 14 2005 Lenz Grimmer <lenz@mysql.com> - Do not build statically on i386 by default, only when adding either "--with |