Permissions scheme not working
- by ReaZem
I am currently building a home server and I am trying to give minimal permissions to every service. I am new to permissions management and this is an awesome learning experience for me :).
drwxr----- 7 reazem enter-home 4096 Sep 9 21:43 reazem
drwxrws--- 3 reazem minidlna 4096 Sep 9 21:36 media
reazem is my home folder and media is my media folder, it is situated directly inside my home.
The minidlna user is part of the following groups : minidlna, enter-home.
I get the following error: Media directory not accessible! [/home/reazem/media]
I was hoping that because the minidlna user is part of the enter-home group, it could get inside the home folder, and then inside the media folder because it is in the minidlna group.
Where is my mistake?
Edit: I found out that chmod g+x /home/reazem solved the problem, but why? Why would you need the execute permission to get inside another directory?
Thank you!