Fri, 7 May 2004 22:14:30 -0700
On Sat, May 08, 2004 at 05:36:33AM +0100, mark wrote:
> But the debugging output is giving "permission denied" errors. The
> permissions on the directories are setup like this:
> # ls /var
> drwxr-x--- 9 root root 4096 May 8 05:11 log/
> # ls /var/log
> drwx------ 3 log log 4096 May 8 05:13 syslog-ng/
> # ls /var/log/syslog-ng
> drwx------ 2 log log 4096 May 8 05:13 local/
> So surely the user "log" and therefore syslog-ng has permission to
> read and write in this directory? It doesn't appear to be the case as
> I can
No, the user log isn't allowed to cd through /var/log.
# chmod o+x /var/log
...and you'll be fine.
No offense, but I recommend a book like "Essential System
Administration" to get a good understanding of UNIX file permissions.
"If you put a billion monkeys in front of a billion typewriters typing
at random, they would reproduce the entire collected works of Usenet in
about...five minutes." - Anonymous