I have created ftp-server using pure-ftpd following this wonderful tutorial. Everything works fine, except file access. Here is the problem.
Joe's home folder is /var/www/joe and Steve's home folder is /var/www/steve. When they log on to the ftp server they enter to their home folders and they cann't access folders of other users. But when Joe's writes a script in PHP in order to access Steve's file, he can access it. For instance, this script works fine for Joe:
$filename = "/var/www/steve/somefile";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
echo $contents;
Is it the problem of the ftp-server or the problem of apache's virtual-host file?
How can I solve this problem please? It is very urgent because it touches the security issue of the users.
Thank you beforehand!