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)
还没有任何评论哟~
