I want to give my website the permission to read files & folders from a Dropbox subfolder.
I think I have added the correct permissions, but I can't get the
www-data user to get access to the folders.
$ cd /home/edent/Dropbox $ ls -la total 9944 drwxrwxr-x 6 edent edent 4096 Aug 14 2012 . drwx------ 67 edent edent 20480 Feb 27 09:11 .. drwxrwxr-x+ 772 edent www-data 118784 Jan 29 20:45 Foo drwxrwxr-x 4 edent edent 4096 Aug 14 2012 Bar
All the sub-folders and files of
Foo are also
drwxrwxr-x+ edent www-data
So, I switch to the user
www-data but it doesn't have permission to access those files and folders!
$ sudo su www-data $ groups www-data $ id uid=33(www-data) gid=33(www-data) groups=33(www-data) $ cd /home/edent/Dropbox/Foo sh: 3: cd: can't cd to /home/edent/Dropbox/Foo
However, if I start in
/home/edent/Dropbox/Foo I can access files but not directories.
$ cd ~/Dropbox/Foo/ $ sudo su www-data $ ls (file listing) $ tail example.txt (file displayed) $ cd Bar/ sh: 4: cd: can't cd to Bar
What am I doing wrong? All I want is for Apache to access a limited set of folders - I don't want to open up my entire filesystem.