I asked a similar question today, about how to authenticate my server users to a postgres database instead of the /etc/passwd
file or LDAP, and I got some useful answers there. I figured out that I have three pieces of my server auth to take care of: logging users in, setting their uid and gids, and giving them sudo
access if necessary.
I was able to find NSS and PAM modules for postgres, but no information on how to use a database, especially postgres, for sudo
instead of sudoers
and sudoers.d
. I tried to find a plugin for sudo but it doesn't look like one exists - I only found the one plugin on the sudo website plugin page.
Is it possible to use an external database for sudo
?