Tech Junkie Blog - Real World Tutorials, Happy Coding!: Linux CentOS In-Depth: Creating and Adding Users to The developers Group

Monday, January 7, 2019

Linux CentOS In-Depth: Creating and Adding Users to The developers Group

In the previous post we created a user called "John Wallace", in this post we are going to add John and Jason into the developers group.  In any system you want to group users into groups so that you can easily assign constraints and privileges to a group of user instead of doing it one at a time.

To create a group call developers type in the following command:

  1. su to get root access
  2. groupadd developers to add the group developers 

3.  Now we want to assign John and Jason to the developers group, with this command useradd john -G developers and repeat the command with jason

As you can see we used the usermod command instead of the useradd command because john, and jason already exists.

4.  Now let's assign a group to the user on creation using the useradd command useradd -s /bin/bash -d /home/dora -m dora -G developers 

In the command above we added a new user called dora and assigned her to developers group at the same time.  The -G option indicates that we want to assign a default group to the user.

5.  Now to verify we are going to list the members of the developers group with this command grep 'developers' /etc/group this command searches for entry for the developers group in the /etc/group file

6.  Now let's say John is a bad developer and always brings down the server with his infinite loops.  We can use this command to remove John from the developers group gpasswd -d john developers


  1. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.
    Advanced AWS Training in Bangalore | Best Amazon Web Services Training Institute in Bangalore
    Advanced AWS Training Institute in Pune | Best Amazon Web Services Training Institute in Pune
    Advanced AWS Online Training Institute in india | Best Online AWS Certification Course in india
    AWS training in bangalore | Best aws training in bangalore

  2. Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.
    microsoft azure training in bangalore
    rpa training in velachery| rpa training in tambaram |rpa training in sholinganallur | rpa training in annanagar| rpa training in kalyannagar

  3. Thanks for splitting your comprehension with us. It’s really useful to me & I hope it helps the people who in need of this vital information. 
    Best Devops online Training
    Online DevOps Certification Course - Gangboard

  4. That was a great message in my carrier, and It's wonderful commands like mind relaxes with understand words of knowledge by information's.
    python Course in Pune
    python Course institute in Chennai
    python Training institute in Bangalore

  5. Both Windows and Linux VPS hosting are good but make sure that you have the right tools in place to install all the software and run the operating system perfectly. Linux VPS

  6. This article was composed from the forthcoming of an end client. From an engineer/planner outlook things get murkier. The further one is expelled from the technology, the less important it progresses toward becoming.

  7. GadgetMeetsGuy with so much of technology all around us it becomes important for us to select the best gadget that suits our budget and our requirements

  8. Another point to consider is to ensure that the domain names are easy to spell and remember so that your visitors can return to your site if the need arises. This way you will not lose a potential customer

  9. Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing magento 2 upgrade

  10. Download ignition Plus features with possibly the most successful personal privacy file administration tools in addition to security thereby supplying you with the likelihood to obtain with confidence. This software download twitter videos program as soon as installed locates it straightforward to merge with your system browsers, Mozilla Firefox, Web Explorer and Opera are all supported.

  11. Typically the reply to this issue lies hidden inside this tool which has the potential in it to unleash the maximum download rates of speed that might never become achieved by every some other tool installed for this function or utilizing your outdated web browser supported obtain options. download twitter videos

  12. productive information, We are best Website Designing Company in Delhi where we give a stunning look for your website. We deal in ecommerce website too by which we known as best Ecommerce Website Development Company in Delhi, Ecommerce Website Designing Company in Delhi . Enough word is not in our dictionary, We are best Mobile App Development Company in Delhi and SEO Services Company in Delhi