Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've recently set up a simple Shamba share on my home server, running Ubuntu 12.04 x64. The share is basically a whole LVM volume residing in my home directory.

Although everything is working more or less as it should, there are some problems.

I'm unable to connect from my client (Win8 x64) using the Netbios name (I'm neither able to ping it), it only works using the IP of the server. This isn't a big problem, but I mention it in case it might be releated to my other problem:

After each client reboot I have to reconnect to the share using the net use command. Connecting to the share via the Windows Explorer GUI has never worked, I suspected because Windows is insisting I have to use a domain (I've tried both my clients and servers hostname and the workgroup name). If I use the net use command it will connect using only /user:mysambauser. I should also mention that the /persistent option does not have any effect - the share is still disconnected upon reboot.

I am a bit unsure if this is actually a problem with my Samba installation or my W8 Client, but I'm posting here anyway hoping that someone might have a clue on what's wrong.

Posting the smb.conf for now, let me know if you need anything else.

#======================= Global Settings ===================================== 
    workgroup = workgroup
    server string = Alyx Samba %v
    netbios name = alyx
    name resolve order = bcast
    security = user
    map to guest = bad user
    dns proxy = no
    username map = /etc/samba/smbusers
    encrypt passwords = yes
    guest ok = no
    guest account = nobody
    # Logging, disable in production
#   log file = %S.log
#   log level = 3
#============================ Share Definitions ============================== 
    path = /home/knut/Mesa/
    browseable = yes
    writeable = yes
    valid users = knut
share|improve this question

migrated from Aug 1 '13 at 17:34

This question came from our site for Ubuntu users and developers.

ok'd for migration to superuser: – fossfreedom Aug 1 '13 at 17:33

Did you apply the Registry hack for Windows 7/8? Below is the contents of the .REG file I use here


Import that (or manually change the values in the registry), reboot, then connect


share|improve this answer
Do you have a source / explanation on what this does? I'm generally a bit cautious about doing registry changes without knowing what to expect. – KG Christensen Jul 31 '13 at 20:41
@KGChristensen Added source to post – Canadian Luke Jul 31 '13 at 20:44
Great, thanks. I'll let you know if it works. – KG Christensen Aug 1 '13 at 7:52
Sorry for the late response. The regfix didn't seem to work, the connection is still lost upon reboot. I have however been able to connect via the Explorer GUI using workgroup\sambauser, but it apart from that I'm still stuck. – KG Christensen Aug 10 '13 at 12:31
You also only use a bcast type of name resolve. Can you use wins or dns? – Canadian Luke Aug 10 '13 at 14:26
up vote 1 down vote accepted

It turns out it was a router issue, or more specifically the local dns domain. A reboot of the router allowed the server to be reached via dns as originally intended and the share now persists.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .