I have a folder under the /etc directory. This folder and files contained in it has to be accessed by every user beloning to myGroup group. I correctly set permissions: every file in this directory gives me, after
my file owner myGroup
this goes for every subfolder (I manually set this for each file/folder).
Anyway, if I type
It tells me that I don't have anough permissions. I think this is due to the fact that /etc folder belongs to the root. But I don't want to change group to the /etc folder too! And I need that folder to stay there!
How to solve this problem?
edit: output of
ls -ld /etc/myFolder/ /etc/myFolder/example.txt
drwxr-xr-x 2 root myGroup 4096 feb 26 12:10 /etc/myFolder/
-r-------- 1 root myGroup 1204 feb 26 12:10 /etc/myFolder/example.txt