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
ls -l
my file owner myGroup
this goes for every subfolder (I manually set this for each file/folder).
Anyway, if I type
cat /etc/myFolder/example.txt
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
gives me
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