Bugzilla – Bug 780
visudo does not catch UTF-8 EN SPACE characters
Last modified: 2017-05-08 13:20:24 MDT
Created attachment 489 [details] sudoers UTF-8 example While trying to enter new sudo entries into a sudoers file someone pasted a line that had UTF-8 EN SPACE (U+2002) chars instead of "normal" 0x20 space chars. This was not visible and not detected by visudo. The lines where then not used and not visible while doing sudo -l. I'm attaching an example file with the offending lines.
In this case the UTF-8 characters are treated as part of the username since sudoers is parsed in the C locale by default. The least surprising thing may be for the sudoers parser to treat the various UTF-8 space characters as blanks regardless of the sudoers locale.