Ubuntu8.04 failure to execute the Modify host name sudo command

Source: Internet
Author: User
Ubuntu8.04HardyHeron after modifying the host name in the network configuration, the following symptoms will appear (after modification, log on again): 1. use the sudo command in the Terminal to report an error. 2. the management permission window cannot be displayed when you perform authorization operations in the GUI. It is confirmed that modification to/etc/hosts can solve this problem. But under normal circumstances, the root permission is required to be modified. Therefore, You need to log on to the recovery mode and use the root account to modify/etc/hosts, that is, the key

After you modify the host name in the network configuration of Ubuntu 8.04, the following symptoms may occur (after modification, log on again ):

1. Use the sudo command in the Terminal to report an error;

2. The management permission window cannot be displayed when you perform authorization operations in the GUI.

It is confirmed that modification to/etc/hosts can solve this problem. But under normal circumstances, the root permission is required to be modified. Therefore, You need to log on to the recovery mode and use the root account to modify/etc/hosts, that is, enter the command nano/etc/hosts. Change 127.0.0.1 localhost to 127.0.0.1 localhost [new host name]. For example, if the host name is MyComp, modify it

127.0.0.1 localhost MyComp

After the modification, press Ctrl + O to save the modification, press Ctrl + X to exit, type exit on the terminal, and restart.

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.