I'm running a program (syslog-ng) that must read and write several files in a given path. It was failing at start, claiming that it is unable to open a file in that path.
Please, assume this directory structure:
/var/platform/program
The platform
directory has the permission set to 0655 (not execute permission to the owner user). If I change that permissions to 0755, syslog-ng works fine.
On the other hand, I have written a small program in C that try to open and write into a file in the same directory, and it works without problem when running as root, but syslog-ng is failing...
What can be the problem in this case?
/var/platform/program/something_more
? It was failing when try to read the configuration file, that is stored on that way – JoseLSegura Sep 27 '13 at 10:11root
can do anything in any directory regardless of the permissions. Most probably syslog-ng is not running as root or has dropped some priviledges. – Stéphane Chazelas Sep 27 '13 at 11:52ps ufax
– JoseLSegura Sep 28 '13 at 10:19