I am having a really tough time understand user/group permissions. I have spent hours reading and trying things. Here is what I have:
drwxrwxr-x 11 root syslog 4.0K May 10 01:59 .
drw-rw-r-- 2 mongosqld logstash 4.0K May 10 03:37 .
Note: I set this up using
total 12K -rw-rw-r-- 1 mongosqld logstash 1.4K May 10 03:43 mongosqld.log
groups logstash mongosqld
logstash : logstash mongosqld : users logstash
When I try to open a file as the
mongosqld user, it tells me
open /var/log/mongosqld/mongosqld.log: permission denied. Where I am going wrong.