Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Info for Accessing Shares on a Windows 7 Computer

  1. #1

    Post Info for Accessing Shares on a Windows 7 Computer

    I just got my Ubuntu 10.10 laptop to finally be able to access my Windows 7 Professional's shares, and I'd like to share how I got it working.

    Whenever I would go to Places > Network on Ubuntu, and then double click on my Windows computer (sometimes after finding it in Windows Network > {workgroup name}), it would immediately bring up a box saying "Password required for {computer name}". My Windows password wouldn't work here, but I didn't even want to be asked for a password. In Windows, under Network and Sharing Center > Choose homegroup and sharing options > Change advanced sharing settings..., Turn off password protected sharing was already selected.

    So, I eventually found out that samba (the program Linux uses to talk with Microsoft's SMB network share protocol) has a bug of sorts. The format of the SMB packets coming from a clean Windows 7 is known by samba. However, if you install Windows Live Sign-In Assistant (which is provided through Microsoft Update) on Windows 7, the packets coming from Windows 7 are modified, and samba can not handle this. A patch has been written for samba, but Ubuntu's repositories (which has samba version 2:3.5.4~dfsg-1ubuntu8.1) does not yet have that patch.

    Also, it seems Microsoft has stopped Windows Live Sign-In Assistant from appearing in Programs and Features. It doesn't appear even if you specifically download and install it separately. I did, however, notice that the installer calls itself Windows Live Essentials 2011. So I found that in Programs and Features, and uninstalled it. It asked which components I wanted to uninstall, and I selected all of them. Rebooted Windows, and now I can access the share no problem.

    I also grabbed the offending packet using Wireshark before and after that uninstall. The packet is indeed different. Specifically, without Windows Live Essentials 2011, there is no mechToken in the packet.

    The current version of samba available is 3.5.6. I may try downloading and compiling that later, and see if it deals with the change that Windows Live Essentials 2011 makes OK.

    Also, it may be possible to get the share working without uninstalling every single Windows Live Essentials 2011 component. You may want to try that if you would like to keep a component.

  2. #2

    Re: Info for Accessing Shares on a Windows 7 Computer

    Alright, I just found that I can't access my Windows 7 shares again, after rebooting Windows a few times. I look in Programs and Features, and lo and behold, Windows Live ID Sign-in Assistant is there now. Windows Live Essentials 2011 is not. I have not idea how Windows Live ID Sign-in Assistant appeared, but I'm uninstalling it now.

    So it looks like we have to look for both programs now. Maybe periodically, or maybe just every time it breaks.

  3. #3
    Join Date
    Oct 2009
    Location
    Tucson, AZ
    Beans
    782
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Info for Accessing Shares on a Windows 7 Computer

    Thanks for figuring this out! Quite a few people have run into this problem in the last few days.

  4. #4

    Re: Info for Accessing Shares on a Windows 7 Computer

    I figured out why Windows Live ID Sign-in Assistant appeared (and it did a few times for me). There's a Microsoft Update, marked as Recommended in the Important section (meaning it wants to install when you shut down your computer) called Games for Windows Software V3.4. Installing this installs Windows Live ID Sign-in Assistant too. So, I found and uninstalled Microsoft Games for Windows - LIVE and Microsoft Games for Windows - LIVE Redistributable in Programs and Features. This stopped that update from appearing. I tried reinstalling Windows Live Essentials 2011 to see if sharing would still work, but it broke.

    So, in conclusion so far, you must uninstall all of these:

    Windows Live Essentials 2011
    Windows Live ID Sign-in Assistant
    Microsoft Games for Windows - LIVE
    Microsoft Games for Windows - LIVE Redistributable

    After uninstalling one and rebooting, another may appear, so be sure to check.

    Oh, and it looks like compiling and installing samba from source isn't as simple as ./configure, make, sudo make install, and samba doesn't provide a .deb installer, so I guess I'll need to wait until an updated samba is pushed to Ubuntu's repositories.

  5. #5
    Join Date
    Oct 2009
    Location
    Tucson, AZ
    Beans
    782
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Info for Accessing Shares on a Windows 7 Computer

    There are a couple of extra steps needed to build Samba, but it's nothing too complicated. Just follow the instructions at http://www.samba.org/samba/docs/man/...compiling.html

  6. #6
    Join Date
    Jan 2011
    Beans
    4

    Re: Info for Accessing Shares on a Windows 7 Computer

    Hi All,

    This problem has been a frustration for me also. I'm a complete Linux/Ubuntu/SMB n00b but I finally found a soultion that worked in the REDHAT bug forums.

    https://bugzilla.redhat.com/show_bug.cgi?id=651722

    Basically you add client use spnego = no the smb.conf and restart smbd. As soon as I did that - up came share access. There was no need for me to screw with WLE 2011 at all.

    Hopes this helps someone.

    -Rick

  7. #7
    Join Date
    May 2007
    Beans
    18

    Re: Info for Accessing Shares on a Windows 7 Computer

    Just to clarify, you just need to add the line:

    client use spnego = no

    to /etc/samba/smb.conf

    right? Is there anywhere in the file it needs to go, and section?

    Dan

  8. #8
    Aearenda's Avatar
    Aearenda is offline Iced Almond Soy Ubuntu, No Foam
    Join Date
    Apr 2006
    Location
    Melbourne, Australia
    Beans
    1,109
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Info for Accessing Shares on a Windows 7 Computer

    I added it into the global section near the top of smb.conf, restarted smbd, and it's working!

    NB, there may be some scenarios this will break rather than fix.

  9. #9
    Join Date
    Jun 2010
    Beans
    10
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Info for Accessing Shares on a Windows 7 Computer

    Hurray, "client use spnego = no" worked for me as well!

    Thank you very much for the solution, it bugged me for months.

  10. #10
    Join Date
    Dec 2007
    Location
    UK
    Beans
    192

    Re: Info for Accessing Shares on a Windows 7 Computer

    It worked for me too. Many thanks.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •