Bug #60789 not correct owners and permissions on files
| Submitted: | 7 Apr 2011 7:53 | Modified: | 26 Sep 2011 21:26 |
|---|---|---|---|
| Reporter: | Pavel Dobryakov | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Enterprise Backup Documentation | Severity: | S1 (Critical) |
| Version: | 3.5.2 | OS: | Linux |
| Assigned to: | CPU Architecture: | Any |
[7 Apr 2011 7:53]
Pavel Dobryakov
[7 Apr 2011 13:58]
Valeriy Kravchuk
Verified just as described on Ubuntu 10.04. I had to use sudo to be able to read files from default 5.1.41 MySQL instance, and (after making mysqlbackup work, eventually), got the following ownership and permissions for the backup: openxs@ubuntu:~$ sudo ls -l backup total 256284 -rw-r--r-- 1 root root 300 2011-04-07 16:50 backup-my.cnf -rw-r--r-- 1 root root 18 2011-04-07 16:51 ibbackup_binlog_info -rw-r--r-- 1 root root 152 2011-04-07 16:51 ibbackup_export_variables.txt -rw-r----- 1 root root 3072 2011-04-07 16:51 ibbackup_logfile -rw-r----- 1 root root 262144000 2011-04-07 16:51 ibdata1 drwx------ 2 root root 4096 2011-04-07 16:51 mysql drwx------ 2 root root 4096 2011-04-07 16:51 sisppg drwx------ 2 root root 4096 2011-04-07 16:51 test Compare this to original files: openxs@ubuntu:~$ sudo ls -l /var/lib/mysql total 266540 -rw-r--r-- 1 mysql mysql 0 2010-07-16 14:15 debian-5.0.flag -rw-r--r-- 1 mysql mysql 0 2011-03-01 16:46 debian-5.1.flag -rw-rw---- 1 mysql mysql 262144000 2011-04-07 16:51 ibdata1 -rw-rw---- 1 mysql mysql 5242880 2011-04-07 16:51 ib_logfile0 -rw-rw---- 1 mysql mysql 5242880 2011-04-07 16:51 ib_logfile1 drwx------ 2 mysql mysql 4096 2011-04-07 16:51 mysql -rw------- 1 mysql mysql 6 2010-09-03 09:11 mysql_upgrade_info drwx------ 2 mysql mysql 4096 2011-02-24 17:49 sisppg drwx------ 2 mysql mysql 4096 2011-04-05 12:28 test -rw-rw---- 1 mysql mysql 4 2011-04-07 10:17 ubuntu.pid
[19 Apr 2011 11:13]
Pavel Dobryakov
have any plans to fix this problem?
[23 May 2011 8:06]
Pavel Dobryakov
This bug prevents our company to make the final decision to purchase enterprise subscription. Is-there any plans to fix it?
[31 May 2011 19:55]
Sveta Smirnova
Pavel, we are not allowed to discuss any plans in public, nor discuss anything not related to how to repeat and/or fix bugs in this bug database. Please contact your account manager or Sales representative who works with you to discuss this case.
[21 Sep 2011 7:54]
Santo Leto
Closing as "Not a bug". It is assumed that the user is familiar with the security mechanisms provided by the operating system. For example, on Unix-like systems the umask controls the file permissions for the new files created by MySQL server and mysqlbackup program. Please set umask correctly.
[26 Sep 2011 9:27]
Santo Leto
It seems that this problem does not happen on Windows, at least as per "cacls" output.
I've tested this using the following commands:
- cacls *.* > d:\original.txt
- cacls *.* > d:\backup_dir.txt
- cacls *.* > d:\apply-log.txt
- cacls *.* > d:\copy-back.txt
and then comparing output files.
In my case, the content of the "original.txt" file is similar to the following:
db_12976288 BUILTIN\Administrators:F
BUILTIN\Administrators:(OI)(CI)(IO)F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F
NT AUTHORITY\Authenticated Users:C
NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)C
BUILTIN\Users:R
BUILTIN\Users:(OI)(CI)(IO)(special access:)
GENERIC_READ
GENERIC_EXECUTE
ibdata1 BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\Authenticated Users:C
BUILTIN\Users:R
ib_logfile0 BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\Authenticated Users:C
BUILTIN\Users:R
ib_logfile1 BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\Authenticated Users:C
BUILTIN\Users:R
mysql BUILTIN\Administrators:F
BUILTIN\Administrators:(OI)(CI)(IO)F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F
NT AUTHORITY\Authenticated Users:C
NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)C
BUILTIN\Users:R
BUILTIN\Users:(OI)(CI)(IO)(special access:)
GENERIC_READ
GENERIC_EXECUTE
performance_schema BUILTIN\Administrators:F
BUILTIN\Administrators:(OI)(CI)(IO)F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F
NT AUTHORITY\Authenticated Users:C
NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)C
BUILTIN\Users:R
BUILTIN\Users:(OI)(CI)(IO)(special access:)
GENERIC_READ
GENERIC_EXECUTE
SLETO-IT.log BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\Authenticated Users:C
BUILTIN\Users:R
SLETO-IT.pid BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\Authenticated Users:C
BUILTIN\Users:R
sr3 BUILTIN\Administrators:F
BUILTIN\Administrators:(OI)(CI)(IO)F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F
NT AUTHORITY\Authenticated Users:C
NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)C
BUILTIN\Users:R
BUILTIN\Users:(OI)(CI)(IO)(special access:)
GENERIC_READ
GENERIC_EXECUTE
test BUILTIN\Administrators:F
BUILTIN\Administrators:(OI)(CI)(IO)F
NT AUTHORITY\SYSTEM:F
NT AUTHORITY\SYSTEM:(OI)(CI)(IO)F
NT AUTHORITY\Authenticated Users:C
NT AUTHORITY\Authenticated Users:(OI)(CI)(IO)C
BUILTIN\Users:R
BUILTIN\Users:(OI)(CI)(IO)(special access:)
GENERIC_READ
GENERIC_EXECUTE
The other 3 files have same content.
[26 Sep 2011 21:26]
John Russell
Documentation is being updated with the requirement to be aware of the permission/ownership considerations and possibly do some combination of umask/chown/chmod. Table 3.1. Information Needed to Back Up a Database A.1. Limitations of mysqlbackup Command The capability to automate this operation via the mysqlbackup command is being submitted as a product requirement. (Which is not a guarantee that the requirement will be accepted.)
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.063 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.