如何增加使用者的群組 - Linux

Table of Contents

請問一下各位唷

test1 是使用者
a b c d 是四個群組

在linux底下下了
sudo usermod -G a test1
會增加 a 到 test1 的次要群組
但是我想要四個群組都是給 test1
請問指令要怎下呢!?

我用
sudo usermod -aG a b c d test1
都顯示錯誤訊息(usermod的使用方法)

請高手們解答

--

All Comments

Belly avatarBelly2009-09-06
sudo usermod -G a,b,c,d test1
Edward Lewis avatarEdward Lewis2009-09-10
gpasswd -a test1 d 哩?