visudo: error if a user is called "list"
frukto opened this issue · 3 comments
frukto commented
In 1.9.13p1 visudo
reports an error if "as_whom"(Runas_Member) is literally list
:
alice ALL=(list) NOPASSWD: /usr/bin/cmd
^~~~
What now?
Apparently this is handled as a syntax error now. This behavior was not present in 1.9.12p2-1 and may be related to the new list pseudo command introduced in 1.9.13?
Edit: As a workaround the Runas_Member can be quoted, this works in 1.9.13p1 and previous versions:
alice ALL=("list") NOPASSWD: /usr/bin/cmd
1.9.13p1 just landed in Debian 12 (bookworm)
millert commented
Thanks for reporting this, that was an unintended side-effect when the "list" command was added. I just committed a fix associated tests for the issue.
frukto commented
millert commented
Fixed in 1.9.13p3