DEV Community

Jeg
Jeg

Posted on

Create a group - Linux

To Create a group:
Syntax: sudo groupadd groupname

To add the user to the group:
Syntax: sudo usermod -a -G groupname username

To create the user:
Syntax: sudo useradd username

Reference URL's:

https://linuxize.com/post/how-to-add-user-to-group-in-linux/
https://linuxize.com/post/how-to-create-users-in-linux-using-the-useradd-command/

Top comments (0)

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️