The Ubuntu terminal prompts The owner of/home/linuxidc/. config/ibus/bus is not root solution
Sudo system-config-Samba error in Ubuntu 17.10 when starting samba graphical interface, in (gedit: 3366): IBUS-WARNING **: The owner ~ /. Config/ibus/bus is not root! Locate the cause
Solution
This is because we cannot use the sudo command to modify system files. We must use the Built-in Administrator permission of the system. The simplest way is to use the gksudo command to enable root editing or sudo-I switching.
Of course, you can add your account permissions to the administrator permissions as follows:
Modify the/etc/sudoers file with the following content:
#
# 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:
Grant all the permissions in the system to the root or your user. You only need to modify the user name.
Sudo-I
Sudo-I is a command used to change the user's permission to use commands in Linux terminal commands.
Sudo-I is a command used to change the user's permission to use commands under Linux terminal commands. For example, in a Linux Command terminal, the command "user @ ubuntu :~ $ ". When this command is used, a prompt will be displayed for entering the password. Then, the prompt will be changed to" root @ ubuntu :~ # ", Which changes the user's permissions on some commands.
How to return sudo-I to the user
After the command is executed, enter exit to log out.