User-group-related-operate:修订间差异
来自三线的随记
(创建页面,内容为“=== add user to group === ==== method 1 ==== <blockquote>vim /etc/group</blockquote> [root@node ~]# cat /etc/group|grep docker docker:x:989:root <br /> ==== meth…”) |
小无编辑摘要 |
||
第1行: | 第1行: | ||
=== add user to group === | ===add user to group=== | ||
==== method 1 ==== | ====method 1==== | ||
vim /etc/group | |||
[root@node ~]# cat /etc/group|grep docker | [root@node ~]# cat /etc/group|grep docker | ||
docker:x:989:root | docker:x:989:root | ||
<br /> | <br /> | ||
==== method 2 ==== | ====method 2==== | ||
usermod -aG docker root | usermod -aG docker root | ||
[[分类:Linux]] | [[分类:Linux]] |
2020年9月29日 (二) 16:44的最新版本
add user to group
method 1
vim /etc/group
[root@node ~]# cat /etc/group|grep docker docker:x:989:root
method 2
usermod -aG docker root