pam: Use --updateall instead of --update when enabling pam_mkhomedir module on RHEL systems.
This commit is contained in:
parent
69d4c81753
commit
d27a33caf9
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ class pam::mkhomedir($umask="0077") {
|
||||||
|
|
||||||
case $::operatingsystem {
|
case $::operatingsystem {
|
||||||
"centos","redhat","fedora": {
|
"centos","redhat","fedora": {
|
||||||
exec { "authconfig --enablemkhomedir --update":
|
exec { "authconfig --enablemkhomedir --updateall":
|
||||||
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
path => "/bin:/usr/bin:/sbin:/usr/sbin",
|
||||||
unless => "egrep '^USEMKHOMEDIR=yes\$' /etc/sysconfig/authconfig",
|
unless => "egrep '^USEMKHOMEDIR=yes\$' /etc/sysconfig/authconfig",
|
||||||
require => Package["authconfig"],
|
require => Package["authconfig"],
|
||||||
|
@ -45,12 +45,12 @@ class pam::mkhomedir($umask="0077") {
|
||||||
augeas { "system-auth-pam_mkhomedir-umask":
|
augeas { "system-auth-pam_mkhomedir-umask":
|
||||||
context => "/files/etc/pam.d/system-auth/",
|
context => "/files/etc/pam.d/system-auth/",
|
||||||
changes => "set *[module='pam_mkhomedir.so']/argument umask=${umask}",
|
changes => "set *[module='pam_mkhomedir.so']/argument umask=${umask}",
|
||||||
require => Exec["authconfig --enablemkhomedir --update"],
|
require => Exec["authconfig --enablemkhomedir --updateall"],
|
||||||
}
|
}
|
||||||
augeas { "password-auth-pam_mkhomedir-umask":
|
augeas { "password-auth-pam_mkhomedir-umask":
|
||||||
context => "/files/etc/pam.d/password-auth/",
|
context => "/files/etc/pam.d/password-auth/",
|
||||||
changes => "set *[module='pam_mkhomedir.so']/argument umask=${umask}",
|
changes => "set *[module='pam_mkhomedir.so']/argument umask=${umask}",
|
||||||
require => Exec["authconfig --enablemkhomedir --update"],
|
require => Exec["authconfig --enablemkhomedir --updateall"],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
"ubuntu": {
|
"ubuntu": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue