Skip to content

Instantly share code, notes, and snippets.

@loreb
Created August 25, 2021 19:01
Show Gist options
  • Save loreb/2caa3e87007e2364a760f0da48f0127c to your computer and use it in GitHub Desktop.
Save loreb/2caa3e87007e2364a760f0da48f0127c to your computer and use it in GitHub Desktop.
prompt may be given but -n given
Just in case this happens to somebody else in the future, since search engines were not terribly helpful...
if you run "sudo -n (whatever)" and get back
error: prompt may be needed but -n given
... and search sudo's sources, and the message is not there...
try "type sudo", chances are you're using UserLAnd on Android and they have
nosudo installed as /usr/local/bin/sudo for some reason;
running /usr/bin/sudo does what you wanted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment