Configuring PAM Authentication and User Mapping with Unix Authentication
This guide shows how to authenticate database users using local Unix accounts and map Unix groups to MariaDB users with the PAM plugin.
Hypothetical Requirements
Creating Our Unix Users and Groups
sudo useradd foo
sudo passwd foo
sudo useradd alice
sudo passwd alice
sudo useradd bob
sudo passwd bobsudo groupadd dba
sudo usermod -a -G dba alice
sudo usermod -a -G dba bobInstalling the pam_user_map PAM Module
Configuring the pam_user_map PAM Module
Installing the PAM Authentication Plugin
Configuring the PAM Service
Configuring the pam_unix PAM Module
Creating MariaDB Users
Testing our Configuration
PreviousConfiguring PAM Authentication and User Mapping with LDAP AuthenticationNextUser and Group Mapping with PAM
Last updated
Was this helpful?

