I use askpass to run commands as root. In file pass.txt I have this written:
#!/bin/bash echo mypassword
And then I run it like this:
export SUDO_ASKPASS=pass.txt ; SUDO_ASKPASS=pass.txt ; sudo -Ak true
Before Sierra this worked just fine, but now I get an error:
sudo: unknown defaults entry `askpass'
But askpass actually works. BTW, I get this error every time I run sudo. That's the end of shudders file after exports:
How to fix this?