Bug #19737 Some file modes too restrictive for other-user "make install"
Submitted: 11 May 2006 18:36 Modified: 12 May 2006 17:09
Reporter: Paul DuBois Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:4.0-BK, 4.1-BK, 5.0-BK OS:Unix
Assigned to: Kent Boortz CPU Architecture:Any

[11 May 2006 18:36] Paul DuBois
Description:
Scenario:

Build MySQL from source distribution as one user.
Try to install as another user.  It doesn't work.

Some files that need to be installed from mysql-test do not have world-read enabled, causing "make install" to fail for users not the owner and not in the file's group:

Example of what happens (though mysql-test/t is not the only directory
or which this occurs):

/bin/sh ../mkinstalldirs \
        /var/mysql/40027/mysql-test/t \
        /var/mysql/40027/mysql-test/r \
        /var/mysql/40027/mysql-test/include \
        /var/mysql/40027/mysql-test/std_data
/usr/bin/install -c -m 644 ./README /var/mysql/40027/mysql-test
/usr/bin/install -c -m 644 ./t/*.test /var/mysql/40027/mysql-test/t
install: ./t/bulk_replace.test: Permission denied
make[2]: *** [install-data-local] Error 71
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1

How to repeat:
See above.

Suggested fix:
chmod -R o+r mysql-test

and commit the mode changes
[12 May 2006 13:01] Valeriy Kravchuk
Thank you for a problem report. Why do you think it is a bug? From my understanding of http://dev.mysql.com/doc/refman/4.1/en/quick-install.html, you either make and install as root (to any user account you want), or as user for himself.
[12 May 2006 16:27] Valeriy Kravchuk
The bug (inconsistency) is that some files in mysql-test/t and mysql-test/r subdirectories of the sources have permissions 660, while others - 664. It can not be OK without good (yet unknown) reason. So, I mark this as verified bug. Verified with 5.0-BK clone of today also.

Use ls -l to check.
[12 May 2006 17:09] Kent Boortz
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html