Ubuntu終端提示The owner of /home/linuxidc/.config/ibus/bus is not root解決辦法

來源:互聯網
上載者:User

Ubuntu終端提示The owner of /home/linuxidc/.config/ibus/bus is not root解決辦法

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即可登出。

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.