I recently installed Windows 8 on my desktop at home and ran into some problems on my file server with restricted samba shares,  it turned out that the problem was that I was using the new Windows 8 Online Users or Live ID Users or whatever they are called and for them to work you need additional Samba configuration.  If you found this post and were expecting a Samba + Windows guide then you are not in the right place, you could try this google search.

If you are having problem accessing your restricted Samba shares from Windows 8 and nothing seems to be working then check to see if you are using the new Online Users, or the Microsoft Live ID because if so then there is a simple solution to your problem,  you simply need an additional line in your smbusers file.

Usually you map your windows users to your linux users via the /etc/samba/smbusers file, it might go something like this:

# Unix_name = SMB_name1 SMB_name2 …
root = administrator admin
nobody = guest pcguest smbguest
!localuser1 = windows7user
!localuser2 = windows8user

What you need to change for the Windows Live ID user to work is adding another user map line like this:

# Unix_name = SMB_name1 SMB_name2 …
root = administrator admin
nobody = guest pcguest smbguest
!localuser2 = windows8user
!localuser2 = windows8user@mydomain.com

That way your Windows Live ID user will authenticate as localuser2, and since you left the original windows8user your other windows 8 local users based on the same username will also work.

Tagged with: