Closed fatbasstard closed 4 years ago
Using multilines for PAM directives is perfectly valid syntax, please see the third paragraph in man pam.d. It's a bug in Augeas if it can't handle that - we're hardly the only ones to use multilines (in this case, for readability reasons). From a quick look at their PAM lens, they seem to handle multilines just inside a parameter list. Please file a bug on the Augeas tracker.
So simply putting this configuration on one line is not considered a workable and/or valuable approach? I must say that I personally do not consider this more readable.
Created an issue in Augeas as well
I agree it's an Augeas issue. I'll fix it there.
As long as it gets fixed: ❤️ Thanx!
@fatbasstard is the multiline in /etc/pam.d/su still an issue with Augeas?
@lpancescu tbh: I don't know. I left the company and don't have a setup at hand to validate the current status.
But quickly looking at the release notes it looks like it is either fixed, or will be really soon. I'll make the assumption here and close the Issue
Thanks!
When spinning up a Vagrant CentOS7 box (
centos/7
) the machine ends up with the following/etc/pam.d/su
file:If the content of this file is being manipulated using Augeas, this breaks due to the multiline:
The default lens for PAM does not support this.
In our case we use Augeas within Puppet to handle configuration management.
If there is no real reason to put the multiline there, can this be put on a single line?