Ubuntu: modify user name and computer name 1. modify the user name: switch to the root to open the following two configuration files vi/etc/passwd and change the user name & quot; xxx & quot; to & quot; cyrec & quot, save and exit vi/etc/shadow and change & quot; xxx & quot; to & quot; cyrec & quot; ubuntu to modify user name and computer name 1. modify the user name: Switch to root and open the following two configuration files: vi/etc/passwd. change the user name "xxx" to "cyrec, save and exit vi/etc/shadow and change "xxx" to "cyrec". after saving and restarting, the name becomes cyrec @ xxx-dest-top: 2. modify the computer name xxx-dest-top to YYY-ZZZ: There are two steps to modify: [1] modify/etc/hosts: sudo vi/etc/hosts 127.0.0. 1 localhost192.168.76.21 YYY-ZZZ # The following lines are desirable for IPv6 capable hosts: 1 localhost ip6-localhost: 0 ip6-loopbackfe00: 0 ip6-localnetff00: 1 ip6-mcastprefixff02: 2 ip6-allnodesff02: 3 ip6-allroutersff02 ~ ~ ~ [2] modify the/etc/hostname content to save the YYY-ZZZ, exit, restart, you can.
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