Ubuntu – pam-auth-update without the text UI

pamUbuntuubuntu-12.04

Is there a way to run pam-auth-update (or some equivalent command), non-interactively on Ubuntu 12.04. I'm trying to automate this process for a number of machines, and the curses interface is making it tedious (and prone to errors).

I'm interested particularly in the case where everything available needs to be activated, but more flexibility in selecting options would be great as well.

Best Answer

You can change the environment variable $DEBIAN_FRONTEND to achieve this:

DEBIAN_FRONTEND=noninteractive pam-auth-update

But be careful, you need to work with debconf to do useful stuff and this can be quite difficult. See for example this bug on launchpad (especially comment #3).