You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
705 B

5 years ago
# **groupmod**
7 years ago
6 years ago
## 说明
7 years ago
5 years ago
**groupmod命令** 更改群组识别码或名称。需要更改群组的识别码或名称时可用groupmod指令来完成这项工作
7 years ago
5 years ago
## 选项
7 years ago
5 years ago
```markdown
用法groupmod [选项] 组
7 years ago
6 years ago
-g, --gid GID 将组 ID 改为 GID
-h, --help 显示此帮助信息并推出
-n, --new-name NEW_GROUP 改名为 NEW_GROUP
-o, --non-unique 允许使用重复的 GID
5 years ago
-p, --password PASSWORD 将密码更改为(加密过的)PASSWORD
6 years ago
-R, --root CHROOT_DIR chroot 到的目录
5 years ago
7 years ago
```
5 years ago
## 实例
7 years ago
5 years ago
```bash
groupmod -n cisco web # 将组名web改成cisco
groupmod -g 9999 web # 创建web组的同时指定gid为9999
```