[username@MACHINE bin]$ sudo
sudo: Files/Microsoft: command not found
I can sudo
just fine as root. I thought this might be due to spaces introduced into PATH
by WSL, but for both the root and non-root accounts, neither enclosing all paths in quotes nor escaping the spaces fixes this problem.
**EDIT:** This is apparently due to devtoolset-7 prepending my PATH
with /opt/rh/devtoolset-7/root/usr/bin
, which includes a sudo
executable. I would rather not have to type /bin/sudo
every time I wish to invoke superuser access; by what means may I make /opt/rh/devtoolset-7/root/usr/bin/sudo
usable?
Asked by MiloDC
(111 rep)
Nov 28, 2021, 11:21 PM
Last activity: Jun 20, 2025, 08:06 PM
Last activity: Jun 20, 2025, 08:06 PM