खोज…
उपयोगकर्ता को समूह में जोड़ें
chyingp
लें कि आपके पास दो उपयोगकर्ता हैं, जो उपयोगकर्ता नाम 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