Story: Setting permission for directory for a particular user
Usually what we do when we want to give permission to folder (lets say our users name is abc for this example and directory name is test):
chown -R abc test
Problem: Does not set the permission to newly created files
Solution: setting the setgid bit so that any new file's (in test) owner is also user abc
sudo chmod -R u+s test