I hate Samba :-), I rarely use it and I can never get it to work without hours of swearing at it.
I want to connect a camera by WiFi and it needs a Windows/NETBIOS type share to connect to so, much against my inclination, I have installed Samba.
The basics work, smbclient can see the printer stuff that Samba installs by default but I can't get a file share to work.
My smb.conf file is as follows, basically the default with the [homes] section uncommented (this is actually the output from 'testparm'):-
[global] workgroup = IBMPEERS server string = %h server (Samba, Ubuntu) server role = standalone server map to guest = Bad User obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . unix password sync = Yes syslog = 0 log file = /var/log/samba/log.%m max log size = 1000 dns proxy = No usershare allow guests = Yes panic action = /usr/share/samba/panic-action %d idmap config * : backend = tdb
[homes] comment = Home Directories read only = No create mask = 0644 browseable = No
[printers] comment = All Printers path = /var/spool/samba create mask = 0700 printable = Yes print ok = Yes browseable = No
[print$] comment = Printer Drivers path = /var/lib/samba/printers
However smbclient doesn't show me anything but the printer stuff:-
chris$ smbclient -L x201 Enter chris's password: Domain=[IBMPEERS] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]
Sharename Type Comment --------- ---- ------- IPC$ IPC IPC Service (x201 server (Samba, Ubuntu)) print$ Disk Printer Drivers LJ1320 Printer HP Laserjet 1320 Photosmart Printer HP Photosmart Prem C410 series Domain=[IBMPEERS] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]
Server Comment --------- ------- VIGOR Vigor Samba Server X201 x201 server (Samba, Ubuntu)
Workgroup Master --------- ------- IBMPEERS X201 WORKGROUP BEN-PC
If I try to connect to a share I get:-
chris$ smbclient //x201/printers Enter chris's password: Domain=[IBMPEERS] OS=[Unix] Server=[Samba 4.1.6-Ubuntu] tree connect failed: NT_STATUS_ACCESS_DENIED
So what to I need to do to get it to work?