首页 > 系统服务 > 详细

The owner of /home/linuxidc/.config/ibus/bus is not root

时间:2020-07-04 15:24:37      阅读:56      评论:0      收藏:0      [点我收藏+]

Ubuntu终端提示The owner of /home/linuxidc/.config/ibus/bus is not root解决办法

[日期:2018-01-22] 来源:Linux社区  作者:Linux [字体: ]
 

Ubuntu 17.10在启动Samba图形界面时出错 sudo system-config-samba,在(gedit:3366): IBUS-WARNING **: The owner of ~/.config/ibus/bus is not root!找到原因

技术分享图片

解决办法

这是因为在修改系统文件时我们不能使用sudo命令去修改,必须使用系统内置的管理员权限。最简单的方法是使用gksudo命令启用root编辑或是sudo -i 切换。

当然你可以把你的账户权限添加到管理员权限中也是可以的,具体做法如下:

修改/etc/sudoers这个文件,内容如下:

#
# This file MUST be edited with the ‘visudo‘ command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo  ALL=(ALL:ALL) ALL

# See sudoers(5) for more information on "#include" directives:

把系统中所有的权限全部授予给root或者你的用户,只需要修改一下用户名就可以了

sudo -i

sudo -i是Linux终端命令下改变用户对命令使用权限的命令。

sudo -i是Linux终端命令下改变用户对命令使用权限的命令,例如,在Linux命令终端中,开始为“user@ubuntu:~$”,当使用该命令后,会出现输入密码的提示,之后输入密码,就会变为“root@ubuntu:~#”,这样就是改变了用户对一些命令的权限。

sudo -i后怎么退到user用户

命令进行后,输入exit即可注销。

本文永久更新链接地址http://www.linuxidc.com/Linux/2018-01/150494.htm 

技术分享图片

The owner of /home/linuxidc/.config/ibus/bus is not root

原文:https://www.cnblogs.com/shixun/p/13234963.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!