augeas
augeas copied to clipboard
Cannot parse pam files created by authselect
Hi, I create a custom profile with authselect and I would like to modify the created pam auth files (fingerprint-auth, password-auth, smartcard-auth, system-auth) with puppet & augeas. For the password-auth the pam lens seems to fit and I can successfully modify the file, but for the other files the lens does not seem to fit: `[root@mar-centos8 ppi]# augtool --noautoload augtool> set /augeas/load/Pam/lens "Pam.lns"
augtool> set /augeas/load/Pam/incl "/etc/authselect/custom/ppi/system-auth"
augtool> load
augtool> ls /files
augtool> set /augeas/load/Pam/incl "/etc/authselect/custom/ppi/password-auth"
augtool> load
augtool> ls /files
etc/ = (none)
augtool> ` Do I something wrong or is the lens not able to change pam files created by authselect ? Kind regards Martin
authselect template pam files have extra meta-commands in them bound by '{' and '}'. Augeas should parse those as comments wrt pam.
Hi there,
Could you post the contents of the file you're trying to parse please?