Thanks in advance for the help!!<div><br></div><div>I'm working with /files/etc/pam.d/system-auth. I've been trying to change an argument that's already there. Either by removing the one that augeas finds and setting a new one with argument[last()+1], or setting it without removing. I can't figure out how to do wither one. Here's the example:</div>
<div><br></div><div>My system-auth has the line:</div><div>password    requisite     pam_cracklib.so try_first_pass retry=3 maxrepeats=3   minlen=10       ucredit=-1      dcredit=-1      ocredit=-1  lcredit=-0</div><div><br>
</div><div>When I try to change the lcredit argument by removing and adding to end I get a type error on the rm:</div><div><br></div><div><div>rm system-auth/*[module='pam_cracklib.so'][type='password']/argument=regexp('lcredit=.*')   # Doesn't work</div>
<div>set system-auth/*[module='pam_cracklib.so']/argument[last()+1] lcredit=-$lowercase"]</div><div><br></div><div>Or setting it inline with:</div><div><br></div><div>set /files/etc/pam.d/system-auth/*[module='pam_cracklib.so']/argument=~regexp('lcredit=-.*') lcredit=-2  # Doesn't work either</div>
<div><br></div><div>How would I change an argument by referencing the argument content (without referencing the argument number directly)?</div><div><br></div><div>~Ed</div></div>