最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

windows - How to unlink the new Microsoft sudo command - Stack Overflow

programmeradmin4浏览0评论

Microsoft has released a new sudo command and it's now installed on every Windows machine.

Not only does its binary have priority over my sudo powershell script, but it does not work as expected.

λ  sudo Set-Service -Name ssh-agent -StartupType Manual
Command not found

Indeed, it does not work with powershell command because they are not executable.

How do I force the sudo command to point to my sudo.ps1 and not C:\WINDOWS\system32\sudo.EXE without deleting a file in system32?

Deactivating the feature does not help.

λ  sudo netstat -ab
Sudo is disabled on this machine. To enable it, go to the Developer Settings page in the Settings app
发布评论

评论列表(0)

  1. 暂无评论