Windows下的Sudo
Sudo for Windows (2024)

原始链接: https://github.com/microsoft/sudo

## Windows Sudo:摘要 Windows Sudo 将提升权限执行命令的概念引入 Windows 终端,允许用户从标准、非提升权限的窗口直接运行需要管理员权限的命令。它作为 Windows 11(版本 26045+)的“内置”功能提供,并可通过设置进行配置,是**一种独特的 Windows 特定实现**,*并非* Unix/Linux `sudo` 工具的移植。 这意味着现有的 `sudo` 脚本和文档可能无法直接应用。项目文档可在 [aka.ms/sudo-docs](aka.ms/sudo-docs) 找到,欢迎贡献——特别是对 `sudo.ps1` 脚本的贡献,以改善 PowerShell 体验。 团队更倾向于通过 **GitHub Issues** 提交错误报告和功能请求(请先搜索!),或通过 **Discussions** 提问。该项目遵守 Microsoft 开源行为准则。

黑客新闻 新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Windows下的Sudo (github.com/microsoft) 12 分,由 luispa 3小时前发布 | 隐藏 | 过去 | 收藏 | 3 条评论 帮助 overflowy 1小时前 | 下一个 [–] 在它发布之前,我们已经有了 https://github.com/gerardog/gsudo。回复 manwe150 47分钟前 | 父级 | 下一个 [–] 这个sudo的文档中提到了这一点,并提到gsudo有更多功能。回复 gnabgib 3小时前 | 上一个 [–] (2024) 那个时候 (587 分,423 条评论) https://news.ycombinator.com/item?id=39305452 回复 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请YC | 联系 搜索:
相关文章

原文

Welcome to the repository for Sudo for Windows 🥪. Sudo for Windows allows users to run elevated commands directly from unelevated terminal windows.

The "Inbox" version of sudo is available for Windows 11 builds 26045 and later. If you're on an Insiders build with sudo, you can enable it in the Windows Settings app, on the "Developer Features" page.

Here you can report issues and file feature requests.

Relationship to sudo on Unix/Linux

Everything about permissions and the command line experience is different between Windows and Linux. This project is not a fork of the Unix/Linux sudo project, nor is it a port of that sudo project. Instead, Sudo for Windows is a Windows-specific implementation of the sudo concept.

As the two are entirely different applications, you'll find that certain elements of the traditional sudo experience are not present in Sudo for Windows, and vice versa. Scripts and documentation that are written for sudo may not be able to be used directly with Sudo for Windows without some modification.

All project documentation is located at aka.ms/sudo-docs. If you would like to contribute to the documentation, please submit a pull request on the Sudo for Windows Documentation repo.

Check out CONTRIBUTING.md for details on how to contribute to this project.

In the meantime, you can contribute to the sudo.ps1 script. This script is meant to be a helper wrapper around sudo.exe that provides a more user-friendly experience for using sudo from PowerShell. This script is located in the scripts/ directory.

Communicating with the Team

The easiest way to communicate with the team is via GitHub issues.

Please file new issues, feature requests and suggestions, but DO search for similar open/closed preexisting issues before creating a new issue.

If you would like to ask a question that you feel doesn't warrant an issue (yet), try a discussion thread. Those are especially helpful for question & answer threads. Otherwise, you can reach out to us via your social media platform of choice:

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

联系我们 contact @ memedata.com