Linux How to: Add a existing user to existing group

usermod example

Add existing user john to admin supplementary/secondary group with usermod command using -a option ~ i.e. add the user to the supplemental group(s). Use only with -G option:

# usermod -a -G admin john

Change existing user john primary group to mail:

# usermod -g mail tony

Related posts:

  1. Migrate existing Ext3 filesystems to Ext4
  2. Rethinking the GUI (Graphical User Interface) and the CLI (Command Line Interface)
  3. Run Single Commands on a SSH-based Server
  4. Howto Recover a Linux Root Password
  5. Howto: How to Reset the MySQL Root Password
  6. Linux Gets Automatic Tuning
  7. Microsoft is using Linux
  8. How to mount bin / cue image files in Linux
  9. Linux Audio Editor Top 3
  10. VMware Killer: Xen With Graphical User Interface On A Fedora 7 Desktop

Comments