Skip to content

Instantly share code, notes, and snippets.

Use Case:
A number of users (ex. www-data, ivailom, etc) need to access a directory (ex. /var/www/media) securely.
Steps:
1. Create a new group that would govern the group access to the directory.
sudo groupadd varwwwmedia
NOTE: Using the default group of the user that created the directory may have unintended consequences elsewhere
2. Add the user that needs access to the group.