-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue: Sudo is disabled on this machine. To enable it, go to the Developer Settings page in the Settings app - sudo alias don't work #387
Comments
Have you restarted your consoles after |
I have restarted the pc but no luck, here is the path. PATH=C:\Users\massimo\scoop\apps\gsudo\current;C:\Program Files (x86)\Common Files\Oracle\Java\java8path;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Microsoft MPI\Bin;C:\Program Files (x86)\VMware\VMware Workstation\bin;C:\ProgramData\scoop\shims;C:\Program Files\shims;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\DTS\Binn;C:\Program Files (x86)\dotnet-core-uninstall;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\PowerShell\7;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Docker\Docker\resources\bin;C:\Users\massimo\scoop\apps\nodejs-lts\current\bin;C:\Users\massimo\scoop\apps\nodejs-lts\current;C:\Users\massimo\scoop\apps\vscode\current\bin;C:\Users\massimo\scoop\apps\openssl\current\bin;C:\Users\massimo\scoop\apps\gsudo\current;C:\Users\massimo\scoop\shims;C:\Users\massimo\AppData\Local\Microsoft\WindowsApps;C:\ProgramData\AppGet\bin;C:\Users\massimo.dotnet\tools;C:\Users\massimo.dotnet\tools;C:\msys64\ucrt64\bin;C:\Users\massimo\AppData\Local\Microsoft\WindowsApps here is the gsudo config
|
It doesn't work with Scoop because |
Thanks, @RuiNtD I created a symlink into |
An alternative is to make a folder somewhere on your drive containing only a symlink from As for adding a fix, gsudo should probably check for the existence of sudo.exe anyways when enabling PathPrecedence, since it's the whole point of the setting, and since it already asks for admin to change the PATH, it can create a symlink at that time as well. |
Maybe @gerardog can add a File.CreateSymbolicLink when set PathPrecedence if path contains "scoop". Another approach can be to modify the Another approach is to place |
Definitely Worked for me |
Issue Description
With 24H2 sudo alias don't work.
I read and apply
gsudo config PathPrecedence True
from #346, but doesn't work.Steps to Reproduce
gsudo config PathPrecedence True
sudo
Context:
The text was updated successfully, but these errors were encountered: