Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unknown polkitd user and input group #1302

Open
nloneday opened this issue Sep 26, 2018 · 3 comments
Open

unknown polkitd user and input group #1302

nloneday opened this issue Sep 26, 2018 · 3 comments

Comments

@nloneday
Copy link

Hello. root was used to ssh remote server to run docker run --user mysql mysql:8.0 ..., but
when ls -l

-rw-r----- 1 polkitd input       56 Sep 25 05:02 auto.cnf
-rw------- 1 polkitd input     1679 Sep 25 05:02 ca-key.pem
-rw-r--r-- 1 polkitd input     1107 Sep 25 05:02 ca.pem
-rw-r--r-- 1 polkitd input     1107 Sep 25 05:02 client-cert.pem
-rw------- 1 polkitd input     1679 Sep 25 05:02 client-key.pem
-rw-r----- 1 polkitd input     1341 Sep 25 05:03 ib_buffer_pool
...

when ps -ef|grep mysql

polkitd  29903 29886  0 05:00 ?        00:00:01 mysqld

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?

@ploxiln
Copy link
Contributor

ploxiln commented Sep 26, 2018

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).

@nloneday
Copy link
Author

@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?

@neduma
Copy link

neduma commented Oct 14, 2020

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).

I have similar situation with redis now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants