If you are using apache then you will need to enable the IncludesNOEXEC option. For example:
<Directory /var/www/htdocs/samba> XBitHack full AddHandler server-parsed .html Options IncludesNOEXEC Indexes SymLinksIfOwnerMatch AllowOverride None order allow,deny allow from all </Directory>To see what this page is supposed to look like see http://dp.samba.org/samba/testpage.html