Question re: pam-auth-update on ubuntu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



How do I run pam-auth-update non interactively to enable a module? 
I tried using `pam-auth-update --enable "<my module>", it successfully runs, but every time I run `pam-auth-update` after that the module shows its not enabled. 
No matter what I try the only way to enable a module is to run `pam-auth-update`, then manually enable it.

More context:

I am running ubuntu 20.04. I have created the following pam config in /usr/share/pam-configs/mkhomedir

Name: sssd-mkhomedir-create-home-dir-for-domain-users
Default: yes
Priority: 900
Session-Type: Additional
        required               umask=0022 skel=/etc/skel

After I created it I run `pam-auth-update`, I see the entry named " sssd-mkhomedir-create-home-dir-for-domain-users" and enable it, and the module is enabled.

If I try to run any of the following the module wont update:

pam-auth-update --enable sssd-mkhomedir-create-home-dir-for-domain-users
pam-auth-update --package --enable  sssd-mkhomedir-create-home-dir-for-domain-users

Nothing seems to work. Is this supported on ubuntu? I need to enable modules in a script and do not want to have to interactively have users enable these pam settings. 

- Dave

Pam-list mailing list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux