Advertisement

Configure User Accounts and Hostnames on an Ubuntu server

阅读量:

Tutorial: Managing Users and Hostname on Ubuntu

1. Change Hostname

To change the hostname of your system:

Edit the hostname file :

复制代码
    sudo nano /etc/hostname

    
    
         

Replace the existing name with your new hostname.

Edit the hosts file :

复制代码
    sudo nano /etc/hosts

    
    
         

Update the line that starts with 127.0.1.1 to reflect the new hostname.

Apply the changes :

复制代码
    sudo systemctl restart systemd-logind.service

    
    
         

2. Rename a User

To rename a user:

**Renam

全部评论 (0)

还没有任何评论哟~