augeas icon indicating copy to clipboard operation
augeas copied to clipboard

Cannot parse pam files created by authselect

Open martux69 opened this issue 4 years ago • 2 comments

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

martux69 avatar Nov 13 '20 16:11 martux69

authselect template pam files have extra meta-commands in them bound by '{' and '}'. Augeas should parse those as comments wrt pam.

jmccanta avatar Dec 23 '20 17:12 jmccanta

Hi there,

Could you post the contents of the file you're trying to parse please?

raphink avatar Jan 11 '21 12:01 raphink