如何将网站建设的资源有效整合并设计一个简易的WordPress系统?
摘要:网站建设的资源整合与系统设计,wordpress 简单,工业设计考研学校排名,佛山网站优化怎么做Linux-usermod修改用户 Linux-useradd创建用户 Linux-userdel删除用户 Linux基础命令-chown修改文
网站建设的资源整合与系统设计,wordpress 简单,工业设计考研学校排名,佛山网站优化怎么做Linux-usermod修改用户 Linux-useradd创建用户 Linux-userdel删除用户 Linux基础命令-chown修改文件属主 Linux基础命令-chmod修改文件权限 groupmems
命令介绍
先来看看这个命令的帮助信息是什么概念 NAME groupmems - administer members of a user’s primary group group… Linux-usermod修改用户 Linux-useradd创建用户 Linux-userdel删除用户 Linux基础命令-chown修改文件属主 Linux基础命令-chmod修改文件权限 groupmems
命令介绍
先来看看这个命令的帮助信息是什么概念 NAME groupmems - administer members of a user’s primary group groupmems命令的主要功能是用来管理用户主要组群的成员由于这个命令会通过读取/etc/gshadow /etc/group文件显示对应的组群信息普通用户无法使用这个命令来进行查看或者添加的操作因此只有在root用户下才可以执行该命令。 来看下这个命令的语法是如何使用的
语法格式
该命令语法格式是groupmems 【参数】【动作】 groupmems -a user_name | -d user_name | [-g group_name ] | -l | -p 基本参数
命令的参数有以下这些信息
选项The options which apply to the groupmems command are:-a, --add user_nameAdd a user to the group membership list.If the /etc/gshadow file exist, and the group has no entry in the /etc/gshadow file, a new entry will be created.-d, --delete user_name从组成员列表中删除用户。If the /etc/gshadow file exist, the user will be removed from the list of members and administrators of the group.If the /etc/gshadow file exist, and the group has no entry in the /etc/gshadow file, a new entry will be created.-g, --group group_name超级用户可以指定修改哪个组的组成员列表。-h, --help现实帮助信息并退出。-l, --list列出组成员。-p, --purge从组成员列表中删除所有用户。If the /etc/gshadow file exist, and the group has no entry in the /etc/gshadow file, a new entry will be created.-R, --root CHROOT_DIRApply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory.
这个命令主要用到的参数实际上还是以用户的增删改查为主以表格的格式显示一起来看看有哪些实际参数。
-a添加用户到组成员列表-d从组成员列表中删除用户-g修改所有组的组成员列表-l列出组成员-p从组成员列表中删除所有用户
参考实例
1.添加用户到dev组
这里提前创建了一个dev组以及张三和李四两个用户,相当于是给用户添加了附加组。
