corrections to logging when using a sudo password