Ubuntu 添加用户

前端之家收集整理的这篇文章主要介绍了Ubuntu 添加用户前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

平台:Ubuntu 16.04

命令: adduser

在root 用户下 执行命令

  1. #adduser blog
  2. password for xx:
  3. Adding user `blog' ...
  4. Adding new group `blog' (1001) ...
  5. Adding new user `blog' (1001) with group `blog' ...
  6. The home directory `/home/blog' already exists. Not copying from `/etc/skel'.
  7. Enter new UNIX password:
  8. Retype new UNIX password:
  9. passwd: password updated successfully
  10. Changing the user information for blog
  11. Enter the new value,or press ENTER for the default
  12. Full Name []:
  13. Room Number []:
  14. Work Phone []:
  15. Home Phone []:
  16. Other []:
  17. Is the information correct? [Y/n] Y
  18.  
  19. ---------------------
  20.  
  21. 新用户添加权限
  22. # vim /etc/sudoers
  23. 修改文件如下:
  24. # User privilege specification
  25. root ALL (ALL) ALL
  26. blog ALL (ALL) ALL
  27.  
  28. 修改的是 readonly file 所以在保存退出 使用 wq! 命令

猜你在找的Ubuntu相关文章