ubuntu compatible password change function