'Syntax error' while setting sudo.conf askpass variable with visudo

3

I want to set askpass program for sudo, i've made file /etc/sudoers.d/path-askpass with following content:

# Path to askpass program 

Path askpass /usr/bin/ssh-askpass

File was edit with visudo, which complains on syntax error at line 3, whereas i can't see any syntax errors there.

sudo version:

~$LANG=C sudo -V
Sudo version 1.8.10p3
Sudoers policy plugin version 1.8.10p3
Sudoers file grammar version 43
Sudoers I/O plugin version 1.8.10p3

Pavlus

Posted 2014-12-10T18:55:02.527

Reputation: 528

Answers

1

You forgot the =. Try this way:

Path askpass = /usr/bin/ssh-askpass

jherran

Posted 2014-12-10T18:55:02.527

Reputation: 1 693

1Thanks, that fixed my problem, but in man sudo.conf there is no = char. – Pavlus – 2014-12-10T19:24:50.900