<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/cn/tag/sudo/</link><description>多元化原创文章，内容包罗万象，有编程语言、网站应用、软件介绍、硬件介绍、操作系统、旅行游记、专题采访、益智问题、文学创作，以及作者们的知识分享和作品分享。</description><language>zh-CN</language><lastBuildDate>Sun, 22 Nov 2026 18:22:46 +0800</lastBuildDate><atom:link href="https://magiclen.org/cn/tag/sudo/feed/" rel="self" type="application/rss+xml"/><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>使用 pkexec 解决 sudo 指令无法使用的问题</title><link>https://magiclen.org/cn/sudo-permission-error/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2022/06/shot-01-2-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2022/06/shot-01-2-220x162.png 1x, https://magiclen.org/wp-content/uploads/2022/06/shot-01-2-440x324.png 2x, https://magiclen.org/wp-content/uploads/2022/06/shot-01-2-660x486.png 3x" alt>
Linux 的 sudo 指令可以用来暂时让用户获得 root 权限去运行某个指令。不过有时候可能会因为操作失误而导致 sudo 指令坏掉而不可正常使用，如果此时我们又不能直接登录 root 帐号的话，那该怎么样重获 root 权限呢？]]></description><category>Linux</category><category>Linux</category><category>sudo</category><category>pkexec</category><guid>https://magiclen.org/cn/sudo-permission-error</guid><pubDate>Thu, 7 Jul 2022 12:00:00 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>解决 Linux 操作系统的 sudo 无法运行特定指令的问题</title><link>https://magiclen.org/cn/linux-sudo-path/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2019/02/shot-34-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2019/02/shot-34-220x162.png 1x, https://magiclen.org/wp-content/uploads/2019/02/shot-34-440x324.png 2x, https://magiclen.org/wp-content/uploads/2019/02/shot-34-660x486.png 3x" alt>
在操作 Linux 操作系统的时候，经常会使用「sudo」指令来让某个指令临时拥有 root 权限。可是有时候却会遇到，明明直接在终端机输入某个指令（不使用「sudo」）可以正常运行得到，但在相同指令前加上「sudo」之后就运行不到了的状况。这是什么原因造成的呢？该如何解决？]]></description><category>Linux</category><category>Linux</category><category>sudo</category><guid>https://magiclen.org/cn/linux-sudo-path</guid><pubDate>Mon, 8 Apr 2019 12:00:47 +0800</pubDate><dc:creator>Magic Len</dc:creator></item><item><title>如何设置 Linux 是否要在用户输入 sudo 密码时，以星号字符显示已输入的密码长度？</title><link>https://magiclen.org/cn/sudo-show-hide-password/</link><description><![CDATA[<img src="https://magiclen.org/wp-content/uploads/2018/12/shot-02-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/12/shot-02-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/12/shot-02-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/12/shot-02-660x486.png 3x" alt>
「sudo」是 Linux 操作系统常用的指令，它可以暂时让非 root 的用户能够以 root 权限去运行某个指令。在使用「sudo」运行指令之后，程序通常会要求用户再次输入其登录时所用的密码，以确保目前临时使用 root 权限操作电脑的人真的是该用户本人。在预设情况下，用户输入给「sudo」的密码通常完全不会显示在终端机上，但是我们其实可以做一些设置，让用户输入的密码能以星号字符表示出来，如此...]]></description><category>Linux</category><category>Linux</category><category>sudo</category><guid>https://magiclen.org/cn/sudo-show-hide-password</guid><pubDate>Sat, 26 Jan 2019 12:00:10 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>