
레드햇 리눅스 5.10(티캉가)
두 번째 그룹에 기존 사용자를 추가하려고 합니다. 사용자는 이미 "prim"이라는 기본 그룹의 일부이고 이를 추가하려는 보조 그룹은 "sec"입니다. 나는 이것을 시도했습니다 :
sudo usermod --append sec chuck # Got the syntax screen for usermod
sudo usermod -G prim -append sec chuck # Got the syntax screen again.
매뉴얼 페이지에는 필요하다고 usermod
되어 있으므로 그렇게 했습니다. 그렇다면 이 사용자를 두 번째 그룹에 어떻게 추가합니까?--append GROUP
-G
답변1
usermod -aG groupname username