Linux File Permissions - devinziegler/Devin-Tech-Journal GitHub Wiki

Assignment: Linux file permissions

Linux Groups:

  • Create a group:
groupadd <group_name>

This command will create a group

Add user to a group:

usermod -aG <group_name> <user_name>

This command will add the desired user to the desired group.

Making a group specific directory:

First a directory must be created

mkdir /<dir_name>

Change the directory group:

chgrp <group_name> <directory>

Privelages:

  • Privelages can be changed using the chmod command:
⚠️ **GitHub.com Fallback** ⚠️