수색…
그룹에 사용자를 추가하십시오.
사용자 이름이 chyingp
및 casper
인 두 명의 사용자가 있고 이들 모두를 그룹 root
에 추가하려고한다고 가정 해 보겠습니다.
usermod chyingp -a -G root
usermod casper -a -G root
여기에 -a
, -G
대한 설명이 나온다.
-a, --append
Add the user to the supplementary group(s). Use only with the -G option.
-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
A list of supplementary groups which the user is also a member of. Each group is separated from the next by
a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given
with the -g option.
If the user is currently a member of a group which is not listed, the user will be removed from the group.
This behaviour can be changed via the -a option, which appends the user to the current supplementary group
list.
Modified text is an extract of the original Stack Overflow Documentation
아래 라이선스 CC BY-SA 3.0
와 제휴하지 않음 Stack Overflow