C
C
Corp_Habra_Clients2020-01-24 22:24:38
css
Corp_Habra_Clients, 2020-01-24 22:24:38

Linux and MySQL integration?

Can you please tell me how to make MySQL database users and UNIX users (Ubuntu users) the same (except root), they have the same names and passwords, and so that when creating a new user in ubuntu, he appears in the database?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
P
ParaBellum577, 2019-04-24
@nen0y

Everything is working.

C
CityCat4, 2020-01-24
@CityCat4

In this case, store users in MySQL, and output them to the system via PAM. Bypass the root somehow, and forward the rest to MySQL. I don’t know, however, whether anyone did this, but users from AD are so easily hooked.

S
Shohruh Shaimardonov, 2020-01-24
@joeberetta

Well, that's the logic. Write a bash script that will take username as parameters; password and execute in turn:
Create newUser
Add newUser to mysql
Naturally, under the hood, you need to think about privileges, groups, and so on.
You can also do the 2nd bash by analogy, only to change the password (so that the house of cards does not collapse, as Adamos said )

V
Vitaly Karasik, 2020-01-25
@vitaly_il1

Look at
https:
//www.percona.com/doc/percona-server/5.7/man ...
I did not use it myself, but I used the LDAP module - for authentication against active directory.

A
Andrey Barbolin, 2020-01-29
@dronmaxman

Have you been banned by your google provider?
https://mariadb.com/kb/en/authentication-plugin-un...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question