lib: Extend sshpwauth example

This patch modifies the sshpwauth example so the changes are persisted and activated.