The Ubuntu terminal prompts The owner of/home/linuxidc/. config/ibus/bus is not root solution

Source: Internet
Author: User

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.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.