https://bugzilla.novell.com/show_bug.cgi?id=842264 https://bugzilla.novell.com/show_bug.cgi?id=842264#c0 Summary: Starting mysql kills all permissions in /usr Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: All OS/Version: Linux Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: mhrusecky@suse.com ReportedBy: jengelh@inai.de QAContact: qa-bugs@suse.de Found By: Beta-Customer Blocker: --- If you have /etc/my.cnf: log-bin=mysql-bin.log log-bin-index=mysql.log.index log-error=log.error.log that is, non-absolute paths, /etc/init.d/mysql will foolishly chown all of /usr to mysql:mysql because /usr happens to be the script's CWD. /etc/init.d/mysql tries to be overly smart (it should not) and does: 1. parse the mysql command line which it probably should not 68: --log-error=*) log_error="`echo "$arg" | sed -e 's/^[^=]*=//'`" 2. attempt to determine the directory of the particular file 329: log_dir="`dirname "$i"`" Because "$i" equals "log.error.log", `dirname "$i"` will be ".". That is BAD BAD BAD. 3. chowns everything. chmod 770 "$log_dir" chown -R --no-dereference mysql:mysql "$log_dir" 4. Almost everything in the system fails. Now, whether my.cnf should have relative paths is another question, but putting them there causes severe havoc. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.