> 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
Hai, https://downloads.van-belle.nl/samba4/examples/ Here are 2 files for a time machine setup. An example config : samba-491-conf.txt And the timemachine.service file Get them and adjust your config. These are tested by other samba list users and they reported this works. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens > Russell Fulton via samba > Verzonden: donderdag 14 februari 2019 4:31 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Issues with using Samba share from Mac OS > > > > > 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 > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Hi Louis, On Thu, Feb 14, 2019 at 08:46:46AM +0100, L.P.H. van Belle via samba wrote:>https://downloads.van-belle.nl/samba4/examples/ > >Here are 2 files for a time machine setup. >An example config : samba-491-conf.txt >And the timemachine.service fileplease note that there's no such thing as fruit:advertise_fullsync :) "fruit:time machine = yes" is all that's needed. I also don't understand why the Avahi service file is needed when Samba is able to do this automagically, given it's built with Avahi support. You may want to point this out in the config example? -slow -- Ralph Boehme, Samba Team https://samba.org/ Samba Developer, SerNet GmbH https://sernet.de/en/samba/ GPG-Fingerprint FAE2C6088A24252051C559E4AA1E9B7126399E46
Hai Ralph, Thanks for the notice on this, i dont run Mac myself so i have to rely on others. I'll add some extra comments here. Any other optimize tips for Mac, i'll add them. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: Ralph Böhme [mailto:slow at samba.org] > Verzonden: donderdag 14 februari 2019 9:10 > Aan: L.P.H. van Belle > CC: samba at lists.samba.org > Onderwerp: Re: [Samba] Issues with using Samba share from Mac OS > > Hi Louis, > > On Thu, Feb 14, 2019 at 08:46:46AM +0100, L.P.H. van Belle > via samba wrote: > >https://downloads.van-belle.nl/samba4/examples/ > > > >Here are 2 files for a time machine setup. > >An example config : samba-491-conf.txt > >And the timemachine.service file > > please note that there's no such thing as > > fruit:advertise_fullsync > > :) > > "fruit:time machine = yes" is all that's needed. > > I also don't understand why the Avahi service file is needed > when Samba is able > to do this automagically, given it's built with Avahi > support. You may want to point this out in the config example?What i guess here,> > -slow > > -- > Ralph Boehme, Samba Team https://samba.org/ > Samba Developer, SerNet GmbH https://sernet.de/en/samba/ > GPG-Fingerprint FAE2C6088A24252051C559E4AA1E9B7126399E46 > >
Hai Russel, The service file should not be needed anymore. I've added a new example, can you try that? https://downloads.van-belle.nl/samba4/examples/samba-timemachine-example.txt If anyone has other suggestions/improvments, let me know. Greetz, Louis Van: Russell Fulton [mailto:r.fulton at auckland.ac.nz] Verzonden: donderdag 14 februari 2019 22:19 Aan: L.P.H. van Belle CC: samba at lists.samba.org Onderwerp: Re: [Samba] Issues with using Samba share from Mac OS Thanks Louis! For your response and for running the archive. On 14/02/2019, at 8:46 PM, L.P.H. van Belle via samba <samba at lists.samba.org> wrote: Hai, https://downloads.van-belle.nl/samba4/examples/ Here are 2 files for a time machine setup. An example config : samba-491-conf.txt This config file works, at least in as much as it gets me back to where I was before I uninstalled my version. I now mount the drive on the mac but can not modify any files on the drive (more below) And the timemachine.service file I am not sure where this file goes on the Mac. I know you are not a Mac user but if there are any others out there that know where this file should be placed the feel free to sing out ;) I am also asking our mac experts a work and will pass on anything I find I am now back to the issue that I can not create or modify files from the Mac. Attempts to create files result in “permission denied” even thought the permissions look fine and it I try and modify a file created on the unix end I get: I assume these issues are something to do with apple extended attributes. Russell