rundeck:辅助sudo密码验证不起作用

时间:2017-08-30 13:01:29

标签: linux automation scheduled-tasks sudo rundeck

  <node 
    name="***"
    tags="***" 
    osFamily="***" 
    username="***"
    hostname="192.168.***.***"
    ssh-authentication="password"
    ssh-password-storage-path="keys/nodes/${node.name}/ssh.password"
    sudo-command-enabled="true"
    sudo-password-storage-path="keys/nodes/${node.name}/sudo.password"
  />

命令:

sudo mv /temp/hello.txt /path/to/destination/

然后我通过密钥存储添加了密码。

  • 我确信用sudo.password写的密码是正确的。
  • 我重新启动了rundeck服务器我无法正常工作......
  • 我尝试设置sudo-fail-on-prompt-timeout =“false”

收到错误:

Remote command failed with exit status -1 
14:48:18   Sudo execution password response failed: Failed waiting for input prompt: Expected input was not seen in 5000 milliseconds 
14:48:18   Failed: NonZeroResultCode: Remote command failed with exit status -1 

14:48:13   Password:  

什么不起作用???

1 个答案:

答案 0 :(得分:0)

下班后,我找到了解决方案...... 控制 sudo-prompt-pattern 属性!根据您正在使用的操作系统,发行版,您需要修改默认值,即^ [sudo]密码。+ :. * https://groups.google.com/forum/#!topic/rundeck-discuss/yiYDlfCkJvY