views:

413

answers:

1

Hello all,

I want my HTML page to link to a directory in a Samba share (protocol SMB/CIFS Windows share). In my HREF I wrote file://server/Share2/folder3

Most browsers handle it fine (mount the share and open a file manager on folder3) except Internet Explorer 7 and Internet Explorer 8, which says Permission denied without even asking for a password. What should I write in the HREF for IE7/8 to be able to open folder3?

Notes:

  • Actually this works fine if the path does not contain the folder3 part.
  • It works fine if the share is already mounted. So if you test it, type "net use" to make sure that no share is already mounted.
  • The Windows username and the share username are not the same, so a popup should ask for a login/password. Again, this works fine if the path does not contain the folder3 part.
  • For the curious: I am doing this to try and fix a bug in an open source software.
  • A: 

    The correct syntax for file:// links is:

    file:///path/on/local/computer
    
    file://server/share/folder
    

    So in your case try file://server/Share2/folder3

    Sander Rijken
    Unfortunately, changing to the correct syntax does not change anything.Both syntaxes (legacy and correct) lead to the same problem.Thanks anyway!
    Nicolas Raoul