Linux File Permissions - devinziegler/Devin-Tech-Journal GitHub Wiki
Assignment: Linux file permissions
- 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.
First a directory must be created
mkdir /<dir_name>
Change the directory group:
chgrp <group_name> <directory>
- Privelages can be changed using the
chmod
command: