Log on:
Powered by Elgg
Spreadfirefox Affiliate Button

Steve Lee :: Blog :: Fixed: Vista failing to access my shares that work with XP

August 23, 2008

I recently spent some time fixing a problem where any attempt to use an UNC name in explorer to access a share from Vista was failing with Logon failure: account currently disabled. The reason this really annoyed me was the share was on my READY-NAS, was open to guest (no login) and both XP Samba on Ubuntu had no problem accessing it on the workgroup. I even tried enabling the vista guest account to no avail.

After a lot of googling I enventually tried Net Use in case a mapped drive would work (and I could use DOS/Windows file path even though the days of patchy UNC path support are long gone.This gave me error 1331 which turns out to be 'a cache credentials issue. what ever that might be. The fix is to use

net use x: \\computer\share /user:guest

and you can magically access all shares on the device without any more problems.

This is a nasty hack as it ties up a drive but that's not a big issue. A bigger problem is you can't make it persistent as it fails to login again without any user error or prompt. Thus you have to do this each time you want to access the drive after a restart. I guess it's a bug in Vista but perhaps there is a better solution. I don't have time to find it. Does anyone know?

Vaguely related rambling

Recalling that UNC names are supported in nearly all applications these days prompted the memory that at least since DOS 3.1, system calls support / as well as \ as the path separator. In fact there was even an interrupt (API) to change the command line switch character from / to - which removes the obvious clash. In fact I've been using this as a somewhat lazy hack to specify local paths on Windows in some Mozilla XUL to avoid using the platform independent path APIs. The pretend portability of using POSIX style paths obviously falls down if you need to specify a Drive in WIndows' multi-rooted file system.

Keywords: share, UNC, Vista

Posted by Steve Lee


Comments

  1. Hey there. I have Vista also, and had problem with shares as well at first. Basically what I had to do to fix the problem is go into the network and sharing center, and disable password access. Then I had to add everyone to the permissions. I hope this helps.

     

    Casey Mathews

    www.webfriendlyhelp.com

    default user iconCasey Mathews on Saturday, 23 August 2008, 15:13 CEST # |

  2. @Casey, thanks very much. Sadly yes I tried that and the other ideas in the Vista help. I even disabled the Vista firewall just in case. It seems that the password access option is for  access to shares on *this* computer but I wondered if it might affect access to others like you found. I also enable Network discovey and FIle sharing and selected a home/bix network.

    Steve LeeSteve Lee on Saturday, 23 August 2008, 15:24 CEST # |

  3. I hit this issue too.  Thanks for the solution - which is better than nothing.  Notice that if you omit the "X:" then it doesn't even tie up a drive mapping but still works.

    default user iconWilliam Reeve on Saturday, 20 September 2008, 17:56 CEST # |

  4. William thanks that's an improvement.

    Steve LeeSteve Lee on Saturday, 20 September 2008, 18:04 CEST # |

You must be logged in to post a comment.