Ubuntu – SAMBA — Cannot access Samba share from XP

sambawindows xp

Cannot access SAMBA share on Ubuntu 12.04 box from XP box.

SAMBA is up and running on the Ubuntu box. smb.conf has the correct windows workgroup name in it, and I can see the Ubuntu box from the XP machine.

On the Ubuntu box, I have set up a UNIX username CCD1 with a password for the purposes of sharing. I have added a Samba username in Samba Server Configuration of UNIX name: ccd1, Windows Username: Mike (username on the XP box), and put in password (same as used for the UNIX username).

I have given access to the Samba shared folder for this username.

On the XP box I can browse the Network Neighborhood, drill down to the workgroup shares and see the Ubuntu box. I can see the shared folder on the Ubuntu box. It is also sharing printers. I can access the printers, I cannot access the shared folder.

Here is how /etc/samba/smb.conf lists the two shares:

[PRINT$]
  comment = all printers
  browseable = no
  path = var/spool/samba
  printable = yes
; guest ok = no
; read only = yes
  create mask = 6766

[CCD_Staff_Dailies]
  comment = Shared Folder
  path = /media/HDD 1/CCD/CCD_Staff_Dailies
  writeable = yes
; browseable = yes
  valid users = sysadmin, ccd1

If I attempt to view the contents of the shared folder from the XP box it doesn't ask for my credentials, I just get:

\Ccd-files-linux\CCD_Staff_Dailies is not accessible. You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permissions. Access is denied."

Best Answer

I just want to get into a public record that nowadays you need to add these configurations into the [Global] section of /etc/samba/smb.conf to make Windows XP able to connect to your Samba 4.5 server:

server max protocol = NT1
lanman auth = yes
ntlm auth = yes

Of course that compromises the security on some level I am deliberately unaware of.

Related Question