Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible for mysql to use PAM (or NIS) authentication. I want to allow all users from unix XXX group to be able to connect to mysql and do whatever they want.

share|improve this question
up vote 0 down vote accepted

Unfortunately mysql doesn't support any kind of PAM authentication, you can use MySQL as a backend for PAM auth but no the other way around.

You'll have to create some kind of script/trigger/puppet recipe to add a new user to the mysql server everytime a new user is added to the PAM database

share|improve this answer

It seems to be possible with MySQL External Authentication for PAM but I haven't tried yet.

(MySQL version > 5.5)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.