I have a remote command that looks like this:
sudo killall -3 -u {$LOCALUSER} java
sudo killall -u {$LOCALUSER} java
however, when it actually runs I see this in the sudoers log:
Aug 7 10:57:19 aba-syd sudo: zabbix : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/killall -3 -u {} java
Aug 7 10:57:19 aba-syd sudo: zabbix : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/killall -u {} java
as you can see, the agent is not replacing the macro with the appropriate value. Did the syntax change or something? The only recent change was that I upgraded to 2.0.1 from 1.8.13. The agent, however is still 1.8. I don't *think* that should be a problem... should it?
sudo killall -3 -u {$LOCALUSER} java
sudo killall -u {$LOCALUSER} java
however, when it actually runs I see this in the sudoers log:
Aug 7 10:57:19 aba-syd sudo: zabbix : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/killall -3 -u {} java
Aug 7 10:57:19 aba-syd sudo: zabbix : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/bin/killall -u {} java
as you can see, the agent is not replacing the macro with the appropriate value. Did the syntax change or something? The only recent change was that I upgraded to 2.0.1 from 1.8.13. The agent, however is still 1.8. I don't *think* that should be a problem... should it?
Comment