[MDEV-15827] Running mariabackup with insufficient system privileges cause crash / coredump Created: 2018-04-09 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Backup |
| Affects Version/s: | 10.2.14, 10.3.5 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Anders Karlsson | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | crash | ||
| Environment: |
Linux CentOS 7.2 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
As an ordinary user, run:
This is an error, but shouldn't cause a core dump like this:
Note that the dump says that "mysqld got signal 6", but actually mysqld per se didn't crash at all. In addition, there is a pointer at the end to a page in the MySQL manual that is unliekly to help (http://dev.mysql.com/doc/mysql/en/crashing.html) . The workaround is to run mariabackup with sudo, obviously. |
| Comments |
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-04-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
workaround about mariabackup performing for non root user [root@t4w6 ~]# sudo usermod -aG wheel foo4 [foo4@t4w6 ~]$ sudo chmod +s /usr/bin/mariabackup [foo4@t4w6 ~]$ sudo chmod g+r /var/lib/mysql/ibdata1
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anders Karlsson [ 2018-04-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tried workaround with 10.2.14 and I got: | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2018-04-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
it must be readable . mariabackup copies files. To copy a file, one needs to read a file. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anders Karlsson [ 2018-04-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Yes, that is obvious, which is why I reported it, it doesn't even when the instructions are followed. I assume that you want
| ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-04-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
actually with ' usermod -aG wheel foo4 ' | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Anders Karlsson [ 2018-04-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Ah, that was the sudoers thing, that was in the attached file but not in the text. Makes sense, but adding the mysql group to the foo4 user also seems to work. All in all, my main issue here wasn't how to run maricbackup but that just a simple error caused a core dump. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Zdravelina Sokolovska (Inactive) [ 2018-04-11 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
yes, thank you. | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ralf Gebhardt [ 2021-08-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
serg, this issue is marked as priority minor, but results in a crash. Any chance that we get it fixed in a way that an error will be shown instead of a crash? | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2021-08-12 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
yes, when | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2022-06-07 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
I don’t think that any mariabackup --backup code was fixed in |