Linux create a user group

Hello
I work with the Linux system, and I want to create user groups. I'm using the commands: addgroup or groupadd or addgrp but it's not working; can you help me!!!
Thank you in advance
Configuration: Windows XP Internet Explorer 6.0

4 answers

  • Votes
  • Date
  • Descending date
  1. groupadd will create a user group for you.

    Its syntax is: groupadd toto

    This command will create the group toto. To verify that this is the case, check if this group has been listed in the file /etc/group with this command:
    cat /etc/group | grep toto

    You should normally see the group as well as the users in it (none for now)

    To add a user to a group, the simplest solution will be to add their name at the end of this line, separated by semicolons if you have multiple.

    Otherwise, you can use the usermod command to modify a user's groups
    --
    Sharing is caring^^
    1. application
      accessory
      terminal
      type "su"
      enter the administrator password
      then groupadd groupname
      to add a group
      1. Hello.
        Check the manual for these commands:
        man groupadd
        man useradd
        Some distributions offer graphical environments for this.
        Good luck.
        1. Contributor
          hello,
          check in the console
          system-config-users
          that should help you out
          see you later

          --
          FC 5 -FC6- Mandriva 2007
          The best things require patience. (JC ANGLADE)