voxpupuli / puppet-augeasproviders_pam

Augeas-based PAM type and provider for Puppet
Other
5 stars 21 forks source link

Removing "nullok" arguements ? #21

Closed linuxdan closed 6 years ago

linuxdan commented 6 years ago

Is it possible to remove a specific argument ("nullok") from multiple lines in a file ?

As in /etc/pam.d/password-auth-ac and /etc/pam.d/system-auth-ac

linuxdan commented 6 years ago

Found my own answers: https://serverfault.com/questions/658966/configuring-pam-with-augeas /files/etc/pam.d//argument[.='nullok']

But I will be using /files/etc/pam.d/password-auth-ac//argument[.='nullok'] and /files/etc/pam.d/system-auth-ac//argument[.='nullok'] because those are the only two that the STIG cares about !