To create a group, use the
$ groupadd family
Notice that there's an option to set the group ID to less than 500 with the
-r option. All group ID's in this range are known a system processes and not real user-populated groups. You may check all current groups within the /etc/group file, which we'll go over in detail shortly.
To modify a group, use the
groupmod command. Let's try renaming our family group to cousins.
$ groupmod -n cousins family
To delete a group, simply use the
$ groupdel cousins
Here's some extra practice for using the above commands and options.
$ groupadd developers # Check to see that the new group has been added $ cat /etc/group # Let's say we have a group with GID 1010 already $ groupadd -g 1010 developers # This should error out. Now let's allow duplicates $ groupmod -o -g 1040 developers # Rename $ groupmod -n cool-kids developers
Programmers have to constantly learn new concepts and technologies. In this book by Andy Hunt, you'll learn how our brains are wired, and how to take advantage of your brain's architecture to make the most of your learning. You'll learn new tricks and tips to learn more, faster, and retain more of what you learn.$ Check price
This book approaches system administration in a practical way and is an invaluable reference for both new administrators and experienced professionals. It details best practices for every facet of system administration, including storage management, network design and administration, email, web hosting, scripting, and much more.$ Check price