Kubuntu 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.

Kubuntu 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

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

Kubuntu提供了sudo命令的图形替代,如果您尝试运行任何管理工具,可能已经看到了:

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,以打开快速运行对话框:

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用户身份运行的终端:

Easy stuff! 

简单的东西!

翻译自: https://www.howtogeek.com/howto/ubuntu/start-a-kde-kubuntu-gui-application-as-root-user/

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐