I am setting up a web page that will list directories/files in a directory on a mounted second harddrive: /mnt/common/pictures using php and apache. I'm getting opendir() failed to open dir: Permission denied error. I can open the /mnt directory and list the files. But I cannot open the common or pictures directory. But, they all have the same permissions:
drwxr-xr-x 3 root root 4096 Sep 22 20:24 mnt
drwxrwxr-x 5 root users 4096 Aug 31 21:33 common
drwxrwxr-x 78 root users 4096 Sep 7 17:42 pictures
As you can see, the only difference is the group users for common and pictures. But, all three allows execute permission for others which I thought meant the ability to cd into a directory. I've even added apache to the group users. What am I doing wrong
Thanks