One big difference between sudo and sudoedit is that sudoedit runs the editor with as few changes to the execution environment as possible. Currently, the umask is not changed to match the value in sudoers, but it really should be. I've just committed a change to that effect: https://www.sudo.ws/repos/sudo/rev/4d0b6152834b - todd