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


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!找到原因

Ubuntu終端提示The owner of /home/linuxidc/.config/ibus

解決辦法

這是因為在修改系統文件時我們不能使用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 

linux


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM