Memsql user with sudo access

Hi,

I have a user memsql which has the sudo previlages but still I am getting this error

$ memsql-deploy install --version 6.7.18
The target user memsql on host 127.0.0.1 does not have the privileges to perform this action.
Please enter your password to proceed with sudo. (For details, see SingleStore Tools Issues · SingleStore Documentation).
sudo password for memsql@127.0.0.1:
could not achieve desired privilege level: error running command: "/usr/bin/timeout" "--foreground" "5" "sudo" "-S" "-k" "-v": exit status 125
$ memsql-deploy install --version 6.7.18 -v
2019/06/26 10:08:06 main.go:39 Running command /usr/bin/id -u -n
2019/06/26 10:08:06 main.go:39 Command /usr/bin/id -u -n took 1.046805ms
2019/06/26 10:08:06 main.go:39 Running command /usr/bin/which rpm
2019/06/26 10:08:06 main.go:39 Command /usr/bin/which rpm took 661.947µs
2019/06/26 10:08:06 main.go:39 Running command /usr/bin/which dpkg
2019/06/26 10:08:06 main.go:39 Command /usr/bin/which dpkg failed with exit code 1 in 649.86µs
2019/06/26 10:08:06 main.go:39 Running command /usr/bin/id -u -n
2019/06/26 10:08:06 main.go:39 Command /usr/bin/id -u -n took 987.106µs
2019/06/26 10:08:06 main.go:39 Running command /usr/bin/which sudo
2019/06/26 10:08:06 main.go:39 Command /usr/bin/which sudo took 673.986µs
2019/06/26 10:08:06 main.go:39 Running command /usr/bin/sudo -n -k -l
2019/06/26 10:08:06 main.go:39 Command /usr/bin/sudo -n -k -l failed with exit code 1 in 1.810924ms
The target user memsql on host 127.0.0.1 does not have the privileges to perform this action.
Please enter your password to proceed with sudo. (For details, see SingleStore Tools Issues · SingleStore Documentation).
sudo password for memsql@127.0.0.1:
2019/06/26 10:08:48 main.go:39 Running command /usr/bin/timeout --foreground 5 sudo -S -k -v
2019/06/26 10:08:48 main.go:39 Command /usr/bin/timeout --foreground 5 sudo -S -k -v failed with exit code 125 in 1.121619ms
could not achieve desired privilege level: error running command: "/usr/bin/timeout" "--foreground" "5" "sudo" "-S" "-k" "-v": exit status 125

How can I get rid of this?

If you have sudo privileges, typing your password at that prompt should allow you to proceed. Try running this slightly modified version of the command that’s failing to see which piece of it might be failing. This will prompt for your sudo password:

/usr/bin/timeout --foreground 5 sudo -k -v && echo "success" || echo "error"