Created
August 25, 2021 19:01
-
-
Save loreb/2caa3e87007e2364a760f0da48f0127c to your computer and use it in GitHub Desktop.
prompt may be given but -n given
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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