visudo must atomically swap the old configuration for the new one. There must never be a time where sudo can see a partially written sudoers file. The temporary should always be placed in the same directory (currently the best way to be sure its being put on the same filesystem and so that differing permissions on different directories don't cause suprising behaviour).
visudo must atomically swap the old configuration for the new one. There must never be a time where sudo can see a partially written sudoers file. The temporary should always be placed in the same directory (currently the best way to be sure its being put on the same filesystem and so that differing permissions on different directories don't cause suprising behaviour).