Redhat Linux 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
,我做到了。那么,如何将该用户添加到第二个组?
usermod -aG groupname username
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句