Sudo error "The path must be a full path to a file and cannot end with a trailing slash".
说明
What is the correct syntax in Authentication Services SUDO Group Policy Dialog box to enable a user to execute all commands in a directory? According to the sudo documentation, you use a path ending with a '/', but the SUDO Rule removes the slash and displays the error: "The path must be a full path to a file and cannot end with a trailing slash". We need to specify ALL commands in the directory because some of them contain hundreds of commands.
解决办法
Place an asterisk at the end of the line as per this example: