Ubuntu Linux runs the the desktop as a regular user account, and so all programs launched are launched in the context of a normal user account.

Ubuntu Linux以常规用户帐户运行桌面,因此所有启动的程序都是在常规用户帐户的上下文中启动的。

To run a command-line program with superuser(root) priviledges, you normally will preceed the command with “sudo”, as shown in this example:

要运行具有超级用户(root)特权的命令行程序,通常在命令前加上“ sudo”,如以下示例所示:

sudo gedit filename.txt

须藤gedit filename.txt

Ubuntu provides a graphical alternative to the sudo command that you have probably seen if you try to run any administrative tool:

如果您尝试运行任何管理工具,Ubuntu提供了图形化的替代sudo命令的功能:

以root用户身份启动Ubuntu Gnome应用程序

You can easily and quickly run any program as root by preceeding the command with the “gksu” command. For instance, let’s launch xterm as root by hitting Alt+F2 to bring up the quick run dialog:

通过在命令前加上“ gksu”命令,您可以轻松快捷地以root用户身份运行任何程序。 例如,让我们通过按Alt + F2以启动root用户启动xterm,以打开快速运行对话框:

以root用户身份启动Ubuntu Gnome应用程序

We’ll first see the password dialog shown above, enter your password… and there we go – we now have a terminal running as root:

我们首先会看到上面显示的密码对话框,输入您的密码……然后我们就可以了–我们现在有一个以root用户身份运行的终端:

以root用户身份启动Ubuntu Gnome应用程序

Easy stuff! 

简单的东西!

翻译自: https://www.howtogeek.com/howto/ubuntu/start-an-ubuntu-gnome-application-as-root-user/

相关文章:

  • 2021-07-31
  • 2022-01-03
  • 2022-02-26
  • 2021-06-09
  • 2022-12-23
  • 2021-05-23
  • 2021-07-27
猜你喜欢
  • 2022-01-08
  • 2022-03-07
  • 2021-07-03
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-25
相关资源
相似解决方案