Skip to content

roots with sudo < 1.7.0 fail with "cannot execute binary file" #12

@bhdn

Description

@bhdn

jurt would fail with: /usr/bin/env: /usr/bin/env: cannot execute binary file

It happens because sudo -i on versions before 1.7.0 would not pass -c to the shell, rendering the command "/bin/bash /usr/bin/env".

The workaround for this issue is to set the following configuration option on older targets:

sudo-interactive-shell-command = sudo -i -- -c

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions