symlinking to an NTFS drive with Apache in Ubuntu

Baffled by my inability to reconfigure apache .htaccess to symlink to an NTFS mounted through fuse…

Options +FollowSymLinks

Just doesn’t seem to work.
However, the permissions on the target need to be set so the www-data user can read the files, and by default this is set umask 007, giving

tim@herge:~$ ls /media -la
total 48
drwxr-xr-x 4 root root 4096 2010-05-28 17:29 .
drwxr-xr-x 22 root root 4096 2010-06-02 12:53 ..
drwxrwx--- 1 root plugdev 28672 2010-06-01 15:55 data

Which isn’t readable by apache. Ths solution? Edit /etc/fstab to something like

# /media/data was on /dev/sda4 during installation
UUID=0068197468196A24 /media/data ntfs defaults,nls=utf8,umask=000,gid=46 0 0

And Apache can follow the symlink to your hearts content.

0 Responses to “symlinking to an NTFS drive with Apache in Ubuntu”


  1. No Comments

Leave a Reply

Please leave these two fields as-is: