用户帐户控制:修订间差异

跳转到导航 跳转到搜索
删除213字节 、​ 2025 年 4 月 23 日 (星期三)
第 62 行: 第 62 行:


=== Windows 11 ===
=== Windows 11 ===
User Account Control received a design refresh again to match with the new Fluent design aesthetics introduced with [[Windows 11]].
用户帐户控制再次进行了设计更新,以匹配 [[Windows 11]] 中引入的新 Fluent 设计美学。


The [[Windows 11 2024 Update|2024 Update]] largely improves upon the existing User Account Control mechanism by introducing ''Sudo for Windows'', an open-source command-line tool directly inspired by the Unix <code>[[w:Sudo|sudo]]</code> command, which allows users to run other programs as the <code>root</code> superuser.<ref>Adoumie, Jordi. [https://devblogs.microsoft.com/commandline/introducing-sudo-for-windows/ Introducing Sudo for Windows!], ''Windows Command Line''. 8 February 2024. Retrieved 9 February 2024.</ref> Despite the name, Sudo for Windows is not based on its Unix counterpart, and is instead written from scratch in the [[w:Rust (programming language)|Rust]] programming language. It does not aim to be compatible with the original implementation either due to the differences between the Windows and Unix permission systems, notably the absence of a superuser account. It can be enabled via the <code>sudo config --enable</code> command, or within a developer-specific toggle included as part of the [[Settings]] application.
[[Windows 11 v24H2|2024 更新]]通过引入 ''Sudo for Windows'' 在很大程度上改进了现有的用户帐户控制机制,Sudo for Windows 是一个直接受 Unix <code>sudo</code> 命令启发的开源命令行工具,允许用户以 <code>root</code> 超级用户身份运行其他程序。<ref>Jordi Adoumie. [https://devblogs.microsoft.com/commandline/introducing-sudo-for-windows/ Introducing Sudo for Windows!], ''Windows Command Line''. 2024 年 2 月 8 日. 检索于 2024 年 2 月 9 .</ref>尽管名称如此,但 Sudo for Windows 并不是基于其 Unix 对应物,而是用 Rust 编程语言从头开始编写的。由于 Windows Unix 权限系统之间的差异,特别是缺少超级用户帐户,它的目标也不是与原始实现兼容。可以通过 <code>sudo config --enable</code> 命令启用它,也可以在[[设置]]应用中包含的开发者选项的切换中启用它。


Sudo for Windows supports multiple modes of operation with varying levels of isolation from unelevated processes. The new window mode merely triggers a User Account Control prompt for the given command and exits. The input disabled and inline modes work by running a second, elevated instance of Sudo itself which runs the given command and redirects its standard streams (excluding the standard input stream if running in input disabled mode) via [[w:remote procedure call|remote procedure call]]s to the original, unelevated instance.
Sudo for Windows 支持多种作模式,与未提升的进程具有不同级别的隔离。新窗口模式仅触发给定命令的用户帐户控制提示并退出。input disabled inline 模式的工作原理是运行 Sudo 本身的第二个提升实例,此实例运行给定的命令,并通过远程过程调用将其标准流(如果在输入禁用模式下运行,则不包括标准输入流)重定向到原始的未提升实例。


With [[Windows 11 build 27718|build 27718]], the elevation prompt has been changed slightly. In [[Windows 11 build 27754|build 27754]], the prompt has been slightly updated with the heading and application name in boldface, as well as minor padding and button size adjustments.
[[Windows 11 Build 27718.1000.rs_prerelease.240927-1358|Build 27718]] 中,提权提示已略有更改。在 [[Windows 11 Build 27754.1000.rs_prerelease.241115-1409|Build 27754]] 中,提示略微更新,标题和应用名称以粗体显示,并进行了细微的填充和按钮大小调整。


==Gallery==
==Gallery==

导航菜单