平台:Ubuntu 16.04
命令: adduser
在root 用户下 执行命令
#adduser blog password for xx: Adding user `blog' ... Adding new group `blog' (1001) ... Adding new user `blog' (1001) with group `blog' ... The home directory `/home/blog' already exists. Not copying from `/etc/skel'. Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for blog Enter the new value,or press ENTER for the default Full Name []: Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] Y --------------------- 给新用户添加权限 # vim /etc/sudoers 修改文件如下: # User privilege specification root ALL (ALL) ALL blog ALL (ALL) ALL 修改的是 readonly file 所以在保存退出时 使用 wq! 命令
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。