Cyberdotin

How to create and delete groups or user in Linux

   

Written by:

So guys in today’s blog, I’m going to tell you how to connect users inside Linux and create groups. how to delete the user from the gorup and delete the entire group.
    So guys will tell you how we do all this work,, there are many people who do not want to join user , then how do make the group , today I am going to tell you inside this blog. step two step follow, otherwise if you do not, then your group and users will not be created.
   So first we will login from the root.
  After login from root, how do we add the group I’m going to write the command below.
#groupadd ccna{ccna IS The Group Name}
#cat /etc/group {To Check The Group IS Created Or Not}

Now How To Add User In Linux

#useradd u1{u1 IS The User Name}
#useradd u2 {u2 IS The User Name}

Now How To Insert User In Group

#usermod -G ccna u1  {ccna Is The Group Name And u1 IS User}
#usermod -G ccna u2  {ccna Is The Group Name And u2 IS User}

through this command,we see whether the group is formed or not.

#cat /etc/group {To Check Group Info}

with this command, we can take out any user from any group.

#gpasswd -d u1 ccna {u1 Is The User And ccna IS Group}

How To Delete Group In ccna ?

#groupdel ccna {ccna IS Group Name}

3 responses to “How to create and delete groups or user in Linux”

  1.  Avatar
    Anonymous

    Nice post admin

    Like

  2. routeripaddress.site Avatar
    routeripaddress.site

    Hola! I’ve been reading your website for a long time now and finally got the courage to go ahead and
    give you a shout out from Humble Tx! Just wanted
    to mention keep up the great work!

    Like

    1. cyberdotin Avatar
      cyberdotin

      thank you bro you have visit my site

      Like

Leave a comment