1. Login as root.

  2. 创建用户: useradd -m wujunchao // -m 自动建立 '/home/wujunchao' 目录.

  3. 修改密码: passwd wujunchao

  4. 修改内核: 修改 '/etc/passwd' 文件最后一行: 'wujunchao:x:1000:1000::/home/wujunchao:/bin/bash'

  5. 如果要加管理员权限: usermod -aG sudo,adm username

  6. Logout root and login as your own account.

查看用户组: groups username

How To Create Users Within Linux Using The "useradd" Command