I am migrating a dedicated server running Debian 12 with LXC and a couple of containers.
I use rsync with -avhze
options from the new server (pulling), with root user on both sides.
It appears that inside a container, the owner and group have changed on 2 mysql folders :
Old server :
root@myOriginalContainer:/# ls /var/lib
drwx--S--- 7 mysql mysql 4,0K 10 juil. 18:10 mysql/
drwx------ 2 mysql mysql 4,0K 4 juin 2017 mysql-files/
New server :
root@myRsyncedContainer:/# ls /var/lib
drwx--S--- 7 996 polkitd 4,0K 10 juil. 18:10 mysql/
drwx------ 2 996 polkitd 4,0K 4 juin 2017 mysql-files/
I checked with less /etc/passwd
that the users are identical in both copies of the container : same names and numerical ID’s.
Edit2 : polkitd debian package may be the culprit, but I am not able to understand how.
So my questions are :
- How is it possible ? And who’s fault is that ? (rsync, mariadb less likely, other ?)
- What is the good way to solve this ?
- Which other files may be affected ? How could I check this “container-widely” if necessary ?
Thanks in advance for any tip!
Kiv is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2