I have a very strange problem that I can't seem to solve.
I have apache module which filters content and within that module I will add some more content based on this calls:
int check;
check = system("/usr/bin/check");
check is a perl-script that exits with value 1 if the file doesn't exist and 0 if it does exist.
The problem with this is that it only works for some accounts, not all. I have a structure like /www/domain/a/b/c/abc/htdocs and it checks if the file exists in /www/domain/a/b/c/abc by using "pwd" and then check for the htdocs directory and check the directory below it.
What kind of rights are needed to do this call? I believe it has to do with some kind of permission-problem since I have it working on two accounts, both who have files and directories belonging to root. The other accounts, that just are "normal" and belongs to themselves, can't seem to do the call properly. It always returns 1 for them, whether the file exist or not.
How can I check if it has to do with some kind of permissions? I've tried changing the permissions on the files from the other accounts, but it didn't show any change.
I hope you guys can help me out