You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please have a look at the polkitd input, the owner is not root or mysql, which lead to uncontrollable user and permission. What should I do to solve it?
The text was updated successfully, but these errors were encountered:
This has nothing to do with paramiko, this is a docker and linux containers thing. The filesystem just uses numbers to refer to users and groups which own files, and these numbers are mapped in /etc/passwd and /etc/group. The user "mysql" inside the docker container has the same uid (number) as the user "polkitd" outside the docker container (the host server).
@ploxiln Thank you so much. I tested docker run mysql:8.0 ... on the host server with --user mysql:mysql and --user root:root directly, it didn't work, but --user ${uid}:${gid} worked.
I think it's mysql image's problem, because I never see polkitd before, the default owner of the docker container is root, right?
This has nothing to do with paramiko, this is a docker and linux containers thing. The filesystem just uses numbers to refer to users and groups which own files, and these numbers are mapped in /etc/passwd and /etc/group. The user "mysql" inside the docker container has the same uid (number) as the user "polkitd" outside the docker container (the host server).
Hello.
root
was used to ssh remote server to rundocker run --user mysql mysql:8.0 ...
, butwhen
ls -l
when
ps -ef|grep mysql
Please have a look at the
polkitd input
, the owner is notroot
ormysql
, which lead to uncontrollable user and permission. What should I do to solve it?The text was updated successfully, but these errors were encountered: