23.11.2020 00:45, Lyndon Nerenberg пишет:
Somebody please tell me what the hell I am doing wrong here.

OpenBSD 6.8, samba 4.9.18 via pkg_add, MacOS 10.15.7 fully patched.

My main goal is to get Time Machine backups running, but I keep getting
all sorts of inscrutable errors about file permissions.  The backup manages
to create a few directories before it blows up:

   : root@broken:/dump/tm; find . -ls
   27641856   32 drwxr-xr-x    3 lyndon   wheel         512 Nov 22 13:27 .
   27641857    0 -rwxr--r--    1 lyndon   wheel           0 Nov 22 13:27 
./.com.apple.timemachine.supported-d865743e-fb2-4a68-b0e7-10857c459e5c
   27641858    0 -rwxr--r--    1 lyndon   wheel           0 Nov 22 13:27 
./.com.apple.timemachine.supported-64bebc6e-ed10-4c41-9f21-301de558be49
   27641859   32 drwx------    3 lyndon   wheel         512 Nov 22 13:27 
./30228818-9C9E-5DBF-8F9B-36F186FA68BF.sparsebundle
   27641860   32 -rw-r--r--    1 lyndon   wheel         502 Nov 22 13:27 
./30228818-9C9E-5DBF-8F9B-36F186FA68BF.sparsebundle/Info.plist
   27641861   32 -rw-r--r--    1 lyndon   wheel         502 Nov 22 13:27 
./30228818-9C9E-5DBF-8F9B-36F186FA68BF.sparsebundle/Info.bckup
   27641862   32 drwx------    2 lyndon   wheel         512 Nov 22 13:27 
./30228818-9C9E-5DBF-8F9B-36F186FA68BF.sparsebundle/bands
   27641863    0 -rwx------    1 lyndon   wheel           0 Nov 22 13:27 
./30228818-9C9E-5DBF-8F9B-36F186FA68BF.sparsebundle/token
   : root@broken:/dump/tm; ls -ld
   drwxr-xr-x  3 lyndon  wheel  512 Nov 22 13:27 .
   : root@broken:/dump/tm;

There's nothing magic about the /dump mount:
fd71e51011d0eabf.c /dump ffs rw,softdep,nodev,nosuid 0 2

Below is my smbd.conf in full.  I'm hoping somebody can point out the
stupidly obvious mistake I'm making :-P  Note that by now I have tried
every sample smbd.conf that exists on the web, so I'd really like to
hear from somebody who *actually has this working*.

--lyndon

---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---

[global]
   min protocol =  SMB2
   ea support = yes
   inherit acls = yes
   #create mask = 0640
   #directory mask = 0750
   workgroup = BITSEA
   server role = standalone server
   log file = /var/log/samba/smbd.%m
   max log size = 200

# Shares
[homes]
    comment = Home Directories
    browseable = no
    writable = yes

[public]
    comment = Public Stuff
    path = /pub
    public = yes
    writable = no
    printable = no

# Time Machine
[timemachine]
   comment = Time Machine Backups
   path = /dump/tm
   browseable = yes
   writeable = yes
   vfs objects = catia fruit streams_xattr
   fruit:aapl = yes
   fruit:time machine = yes
   fruit:metadata = stream
   fruit:model = MacSamba
   fruit:posix_rename = yes
   fruit:veto_appledouble = no
   fruit:advertise_fullsync = true

The one thing you should know about, is fact, that OpenBSD doesn't support extended attributes.

So, basically, you cannot use streams_xattr module.

Anyway, I tried to use streams_depot instead, but it doesn't work too.

So, I am using netatalk for myself. It just works. But you must use apple double to store extended attributes.

Reply via email to