Closed choonming closed 9 years ago
Upon further investigation, it'll only work if I do the following:
pam { 'set pam_mkhomedir.so to common-session':
ensure => present,
service => 'common-session',
type => 'session',
control => 'required',
module => 'pam_mkhomedir.so',
arguments => [ 'umask', '022', 'skel=/etc/skel'],
position => 'after module pam_systemd.so',
}
Is it the intended to throw an error should there be a space in the arguments?
The arguments are expected as an array indeed. The type doesn't check for spaces in the values, so the value gets passed to Augeas, which doesn't like the spaces.
It might be a good to idea to validate the values for no spaces, or to split on spaces maybe.
Hi,
I'm trying to do the following:
However, it is spewing me with errors. Please help me out here.