Modify user name and computer name in ubuntu

Source: Internet
Author: User

Ubuntu: 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 computer name xxx-dest-top to YYY-ZZZ: two steps: [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-mcastprefixff02: 1 ip6-allnodesff02: 2 ip6-allroutersff02: 3 ip6-allhosts ~ ~ ~ [2] modify the/etc/hostname content to save the YYY-ZZZ, exit, restart, you can.
 

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.