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
