How Do I Remove a Secondary Group in Linux?
Contents

How do I delete a secondary group in Linux?

usermod command has -G option to set a list of supplementary groups which the user is also a member of.
…
Step # 2: Remove user from printer group.

Category List of Unix and Linux commands
Text processing cut • rev

How do you delete a secondary group?

Removing User from Secondary Group in Linux

  1. Syntax. The gpasswd command uses the following syntax for removing a user from group. …
  2. Example. Use the following command to remove user jack from sudo group. …
  3. Add User to a Secondary Group. In case you realize that you didn’t want to remove that user from the group. …
  4. Conclusion.
Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest