打開終端,以root用戶登錄。
輸入以下命令創建新用戶:
useradd -m username
其中,username為新用戶的用戶名。
passwd username
usermod -aG sudo username
su - username