I have a very strange problem,

I have samba set up and running. I can access it if I use manual access like :


however it does not show it on the list under my WORKGROUP. (no Folder is showing under my network)

here is the smb.conf

   workgroup = WORKGROUP #(Set this to your Windows workgroup)
   server string = %h server
   dns proxy = no
   log file = /var/log/samba/log.%m
   max log size = 1000
   syslog = 0
   panic action = /usr/share/samba/panic-action %d
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user
   wins support = yes
   usershare allow guests = yes

  comment = Data share
  path = /media/external
  browseable = yes
  read only = no
  writeable = yes
  available = yes
  only guest = no
  create mask = 0777
  directory mask = 0777
  public = yes 


results of nmblookup:

$nmblookup myserve
querying myserver on myserver<00>

results of testparm:

$testparm -v
Load smb config files from /etc/samba/smb.conf                                                                                                                               
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)                                                                                                                                                                                                                                                 
Processing section "[data]"                                                                                                                                                  
Loaded services file OK.                                                                                                                                                     
Server role: ROLE_STANDALONE                                                                                                                                                 
Press enter to see a dump of your service definitions  
  • Output of nmblookup on IP of server?
    – ssnobody
    Jul 27 '15 at 22:12
  • @ssnobody hey mate, I've edited my question and added nmblookup
    – nafas
    Jul 28 '15 at 8:12
  • See ubuntuforums.org/showthread.php?t=1891378&page=2 - check your DHCP (if you use it) and your subnet especially. Make sure your Samba server (the host OS) has the same subnet configured.
    – Kinnectus
    Jul 28 '15 at 8:40
  • I would expect to see the WORKGROUP group in your nmblookup output. From the docs, comments lines are those which BEGIN with a # or ;. Perhaps try removing the trailing comment from your workgroup specification.
    – ssnobody
    Jul 28 '15 at 15:06
  • @ssnobody well I'll be damned. mate I removed # from the workgroup and it worked. I have spent over 1 day on this and it was f ing me up.
    – nafas
    Jul 28 '15 at 16:03

According to the documentation: "Any line beginning with a semicolon (“;”) or a hash (“#”) character is ignored, as are lines containing only whitespace."

So unfortunately comments using (#) or (;) are not allowed unless the (#) or (;) occurs at the beginning of the line.

If you remove the trailing #(Set this to your Windows workgroup) from your workgroup directive it should work for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.