/var/log/
belongs to root user:
$ ls -ld /var/log
drwxr-xr-x. 13 root root 4096 Mar 31 19:23 /var/log
As you can see the other
do not have the write privilege and there's no sticky bit (as for the /tmp/
folder).
But if I look into this folder the mysql user is able to write a file into it:
$ ls -l /var/log |grep mysql
drwxr-x--- 2 mysql mysql 4096 Mar 30 16:03 mysql
How is the mysql user able to create files into this directory? What am I missing here?