Permissions

Folder permissions

To set all the files and folders in a certain folder to a certain user:group, use the following:

chown -R user:group ./

Define groups

To add a user to a group, use the following:

usermod -aG additional_groups username