From a9c163fd3c0c268c42c8f389624a5ebb12cc74f8 Mon Sep 17 00:00:00 2001 From: geekpi Date: Thu, 20 Oct 2022 08:50:22 +0800 Subject: [PATCH] translated --- ...ay to Open Files as Root in GNOME Files.md | 81 ------------------- ...ay to Open Files as Root in GNOME Files.md | 81 +++++++++++++++++++ 2 files changed, 81 insertions(+), 81 deletions(-) delete mode 100644 sources/tech/20221011 Easiest Way to Open Files as Root in GNOME Files.md create mode 100644 translated/tech/20221011 Easiest Way to Open Files as Root in GNOME Files.md diff --git a/sources/tech/20221011 Easiest Way to Open Files as Root in GNOME Files.md b/sources/tech/20221011 Easiest Way to Open Files as Root in GNOME Files.md deleted file mode 100644 index f97f4a07af..0000000000 --- a/sources/tech/20221011 Easiest Way to Open Files as Root in GNOME Files.md +++ /dev/null @@ -1,81 +0,0 @@ -[#]: subject: "Easiest Way to Open Files as Root in GNOME Files" -[#]: via: "https://www.debugpoint.com/gnome-files-root-access/" -[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" -[#]: collector: "lkxed" -[#]: translator: "geekpi" -[#]: reviewer: " " -[#]: publisher: " " -[#]: url: " " - -Easiest Way to Open Files as Root in GNOME Files -====== -Here’s the simplest way to access a file or directory as root in GNOME Files. - -![][1] - -In Windows, you generally get an option to open a file or folder as “Open As Administrator” in the right-click context menu. - -That feature is part of the File manager, i.e. for Windows; it’s part of Windows Explorer. However, it is executed by the operating system and its permission control modules. - -In Linux distributions and file managers, the situation is a little different. The different desktop has their way of handling this. - -Since modifying the files and folders as admin (or root) is risky and may cause a broken system, the feature is not easily available to users via the GUI of file managers. - -For example, KDE Plasma’s default file manager Dolphin recently [added this feature][2] so that when a root privilege is required, it will ask for you with a PolicyKit KDE Agent (polkit) window – as shown below. Not the other way around. You want to open/execute something via root from the file manager. - -It’s worth mentioning that you can not use “sudo dolphin” to run the file manager itself with root privilege. - -![Dolphin root access after KIO with Polkit implementation][3] - -In a way, it saves many unforeseen situations. But advanced users can always use sudo via the terminal to do their job. - -### GNOME Files (Nautilus) and root access to files, directories - -That being said, [GNOME Files][4] (aka Nautilus) has a way to open files and folders via root. - -Here’s how. - -* Open GNOME Files or Nautilus. -* Then click on other locations at the left pane. -* Press CTRL+L to bring up the address bar. -* In the address bar, type in below and hit enter. - -``` -admin:/// -``` - -* It would ask for the admin password; once you authenticate yourself successfully, you get the system open for you as admin. -* Now, here onwards, whatever you do, it’s as admin or root. - -![Enter the location address as admin][5] - -![Give admin password][6] - -![Opening GNOME Files as root][7] - -But, as always, be careful what you do as an admin. It’s often easy to forget after you authenticate yourself as root. - -There’s always a reason why these options are not easily visible to prevent you and many new Linux users from breaking their system. - -Cheers. - --------------------------------------------------------------------------------- - -via: https://www.debugpoint.com/gnome-files-root-access/ - -作者:[Arindam][a] -选题:[lkxed][b] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 - -[a]: https://www.debugpoint.com/author/admin1/ -[b]: https://github.com/lkxed -[1]: https://www.debugpoint.com/wp-content/uploads/2022/10/nauroot-1024x576.jpg -[2]: https://www.debugpoint.com/dolphin-root-access/ -[3]: https://www.debugpoint.com/wp-content/uploads/2022/02/Dolphin-root-access-after-KIO-with-Polkit-implementation.jpg -[4]: https://wiki.gnome.org/Apps/Files -[5]: https://www.debugpoint.com/wp-content/uploads/2022/10/Enter-the-location-address-as-admin.jpg -[6]: https://www.debugpoint.com/wp-content/uploads/2022/10/Give-admin-password.jpg -[7]: https://www.debugpoint.com/wp-content/uploads/2022/10/Opening-GNOME-Files-as-root.jpg diff --git a/translated/tech/20221011 Easiest Way to Open Files as Root in GNOME Files.md b/translated/tech/20221011 Easiest Way to Open Files as Root in GNOME Files.md new file mode 100644 index 0000000000..ac5899e9cc --- /dev/null +++ b/translated/tech/20221011 Easiest Way to Open Files as Root in GNOME Files.md @@ -0,0 +1,81 @@ +[#]: subject: "Easiest Way to Open Files as Root in GNOME Files" +[#]: via: "https://www.debugpoint.com/gnome-files-root-access/" +[#]: author: "Arindam https://www.debugpoint.com/author/admin1/" +[#]: collector: "lkxed" +[#]: translator: "geekpi" +[#]: reviewer: " " +[#]: publisher: " " +[#]: url: " " + +在 GNOME 文件中以 Root 身份打开文件的最简单方法 +====== +这是在 GNOME Files 中以 root 身份访问文件或目录的最简单方法。 + +![][1] + +在 Windows 中,你通常可以在右键单击上下文菜单中以“以管理员身份打开”的方式打开文件或文件夹。 + +该功能是文件管理器的一部分,即适用于 Windows。它是 Windows 资源管理器的一部分。但是,它是由操作系统及其权限控制模块执行的。 + +在 Linux 发行版和文件管理器中,情况略有不同。不同的桌面有自己的处理方式。 + +由于以管理员(或 root)身份修改文件和文件夹是有风险的,并且可能导致系统损坏,因此用户无法通过文件管理器的 GUI 轻松使用该功能。 + +例如,KDE Plasma 的默认文件管理器 Dolphin 最近[添加了此功能][2],因此当需要 root 权限时,它会通过 PolicyKit KDE Agent (polkit) 窗口询问你,如下所示。而不是相反的方式。你想在文件管理器中通过 root 打开/执行一些东西。 + +值得一提的是,你不能使用 “sudo dolphin” 以 root 权限运行文件管理器本身。 + +![使用 Polkit 实现 KIO 后的 Dolphin root 访问权限][3] + +在某种程度上,它挽救了许多不可预见的情况。但是高级用户总是可以通过终端使用 sudo 来完成他们的工作。 + +### GNOME Files (Nautilus) 和对文件、目录的 root 访问权限 + +话虽如此,[GNOME Files][4](又名 Nautilus)有一种方法可以通过 root 打开文件和文件夹。 + +以下是方法。 + +* 打开 GNOME Files 或 Nautilus。 +* 然后单击左侧窗格中的其他位置。 +* 按 CTRL+L 调出地址栏。 +* 在地址栏中,输入下面的内容并回车。 + +``` +admin:/// +``` + +* 它会要求输入管理员密码。当你成功验证自己,你就会以管理员身份打开系统。 +* 现在,从这里开始,无论你做什么,它都是管理员或 root。 + +![以管理员身份输入位置地址][5] + +![输入管理员密码][6] + +![以 root 身份打开 GNOME Files][7] + +但是,与往常一样,请小心你作为管理员所做的事情。在你以 root 身份验证自己之后,通常很容易忘记。 + +这些选项不容易看到总是有原因的,以防止你和许多新的 Linux 用户破坏他们的系统。 + +干杯。 + +-------------------------------------------------------------------------------- + +via: https://www.debugpoint.com/gnome-files-root-access/ + +作者:[Arindam][a] +选题:[lkxed][b] +译者:[geekpi](https://github.com/geekpi) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出 + +[a]: https://www.debugpoint.com/author/admin1/ +[b]: https://github.com/lkxed +[1]: https://www.debugpoint.com/wp-content/uploads/2022/10/nauroot-1024x576.jpg +[2]: https://www.debugpoint.com/dolphin-root-access/ +[3]: https://www.debugpoint.com/wp-content/uploads/2022/02/Dolphin-root-access-after-KIO-with-Polkit-implementation.jpg +[4]: https://wiki.gnome.org/Apps/Files +[5]: https://www.debugpoint.com/wp-content/uploads/2022/10/Enter-the-location-address-as-admin.jpg +[6]: https://www.debugpoint.com/wp-content/uploads/2022/10/Give-admin-password.jpg +[7]: https://www.debugpoint.com/wp-content/uploads/2022/10/Opening-GNOME-Files-as-root.jpg