[Samba] Issues with using Samba share from Mac OS

Russell Fulton russell at fulton.nz
Thu Feb 14 03:31:03 UTC 2019



> On 11/02/2019, at 10:02 AM, Rowland Penny via samba <samba at lists.samba.org> wrote:
> 
> On Mon, 11 Feb 2019 09:14:03 +1300
> Russell Fulton via samba <samba at lists.samba.org> wrote:
> 
>> I am an old UNIX and Mac hand but new to samba.  My ultimate aim is
>> to use a samba share with Time Machine. I have built an up to date
>> version of samba (4.9.2) 
> 
> Samba is now at 4.9.4 and you can get packages for 18.04 here:
> 
> http://apt.van-belle.nl/

I uninstalled the version I built and installed 4.9.4 from the archive above. No problems with the install but I can’t get smbd to mount my disk.

I am unclear about which daemons I need to have running.  What I want to  do is share a couple of disks on my network so the other machines can do backups over the network.  Do I just need smbd?

I have set up local credentials for a single user ( super).

smb.conf:

[global]
  workgroup = WORKGROUP
	server string = %h server (Samba, Ubuntu)
  dns proxy = no
  log file = /var/log/samba/log.%m
  max log size = 1000
  syslog = 0
  panic action = /usr/share/samba/panic-action %d
  server role = standalone server
  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
  usershare allow guests = no
   vfs objects = catia fruit streams_xattr
   fruit:aapl = yes
[printers]
  comment = All Printers
  browseable = no
  path = /var/spool/samba
  printable = yes
  guest ok = no
  read only = yes
  create mask = 0700
[print$]
  comment = Printer Drivers
  path = /var/lib/samba/printers
  browseable = yes
  read only = yes
  guest ok = no
[timemachine]
   comment = Time Machine
   path = /mnt/macmini-bb/timemachine
   browseable = yes
   writeable = yes
   create mask = 0600
   directory mask = 0700
   spotlight = no
   fruit:time machine = yes

smb logs

super at fulton:~$ cat  /var/log/samba/log.smbd
[2019/02/14 11:07:26.428264,  0] ../lib/util/pidfile.c:197(pidfile_create)
 ERROR: smbd is already running. File /var/run/samba/smbd.pid exists and process id 8578 is running.
[2019/02/14 14:52:45.438287,  0] ../lib/util/become_daemon.c:138(daemon_ready)
 daemon_ready: STATUS=daemon 'smbd' finished starting up and ready to serve connections

file I want shared:

super at fulton:~$ ls -l /mnt/macmini-bb/
total 20
drwx------ 2 root root 16384 Jan  1 13:29 lost+found
drwxr-xr-x 3 root root  4096 Feb  6 10:27 timemachine

Attempt to share from local machine:

super at fulton:~$ smbclient -L localhost/timemachine
WARNING: The "syslog" option is deprecated
Unable to initialize messaging context
WARNING: The "syslog" option is deprecated
Enter WORKGROUP\super's password: 
session setup failed: NT_STATUS_CONNECTION_DISCONNECTED

Nothing in the log file after connection attempt

Russell


More information about the samba mailing list