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.