I was trying to get the user nagios to have access a sub directory in another users home directory
I was going crazy setting permissions that should have been to high to get this work work (777 type stuff for testing) but was still getting permission denied doing simple
touch tests. Started writing up a question here to ask and got linked to this dupe target which had the following in its answer:
The directory needs to be searchable to allow users to enter it or its subdirectory "project"
So that is what fixed my issue me as well. I change the group of the folder
/home/alert and set the group permissions to
--x and I am now able create files in
Why did I have to assign those rights in the parent directory
/home/alert? I would have figured the rights in
/home/alert/NagiosAlerts would have been fine?
touch /home/alert/NagiosAlert/file should it only matter about the permissions on NagiosAlert? Why would alert matter?