Question re: pam-auth-update on ubuntu
Dave Houser
davehouser1 at gmail.com
Wed Mar 1 18:33:20 UTC 2023
Hello,
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
Session:
required pam_mkhomedir.so 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pam-list/attachments/20230301/b0226092/attachment.htm>
More information about the Pam-list
mailing list