Hey.
xDebug creates trace and profiling files in / tmp / with 664 permissions (owner: php-fpm, rw; group: webdev, rw), but I can’t rename or delete them except through sudo, even though I’m in the group - the shell gives a standard error:

rm: cannot remove '/tmp/cachegrind.out.5289': Operation not permitted

what could be the problem? It is unlikely that these files have some kind of acl.

    1 answer 1

    IMHO you (as usual with all in Linux) the /tmp sticky bit

     avp@avp-ubu1:templ$ ll -d /tmp drwxrwxrwt 7 root root 4096 Jan 15 00:17 /tmp/ avp@avp-ubu1:templ$ 

    therefore, only the file owner can delete it (since deleting the file also changes the directory itself ).

    • to the very point - etki