Comment 1 by Ludovic Bellière, Jul 11, 2010
Symptoms are the same than that following this line. I'm using a system user (uid<1000) to create a world writeable test file in the /tmp directory. Then, login to another system user to delete it. In this case : apache and mysql users. I belive this issue can be resolved in a cleaner way than the fix in the first post, but if it works :) -bash-4.1$ ll test -rwxrwxrwx 1 apache nogroup 0 2010-07-11 00:20 test* -bash-4.1$ ll -d . drwxrwxrwt 19 root root 4096 2010-07-11 00:44 ./ -bash-4.1$ LC_ALL=C rm -fv test rm: cannot remove `test': Operation not permitted
Comment 2 by Thomas Keller, Sep 1, 2010
Messing around with plain unix permissions is not a good idea, two proper ways to the rescue: 1) use fcgi and suexec, so IDF does not run as www-user, but git user (this also has the neat aspect that you don't have to give your general www-user write access to something you don't really want, especially if the user is shared among several vhosts) 2) use at least ACLs, i.e. by applying a default rule for the directory in question: $ setfacl -m d:u:www-data:rwx /path/to/sync/dir $ setfacl -m d:u:<whatever-your-git-user-is>:rwx /path/to/sync/dir
Sign in to reply to this comment.
Reported by Adrien Sulpice, Jul 11, 2010