Tengo un iMac de 2017 que funciona con : Versión del sistema: MacOS 11.6 (20G165) Versión del núcleo: Darwin 20.6.0 (Big Sur) y un Macbook Pro 2021 (M1 Pro) Versión del sistema: MacOS 12.01 (20G165) Versión del núcleo: Darwin 21.1.0 (Monterey) ¡El iMac está haciendo una copia de seguridad muy bien! (sólo quedan 20 horas)
El servidor Samba está en una Raspberry Pi4 llamada silver que ejecuta Samba 4.13.13 con un recurso compartido llamado TimeMachineBackup finder desde el M1 mac se conecta usando smb://pi@silver/TimeMachineBackup entonces pide el nombre y la contraseña - introduzco la contraseña smb, se muestra un diálogo Ha habido un problema de conexión con el servidor "silver". no tiene permiso para acceder al servidor
Las VMs de Windows en ambos Macs pueden conectarse bien. Un MacBook pro de 2018 más antiguo se ve afectado de forma similar
el smb.conf es:
[global]
workgroup = WORKGROUP
; interfaces = 0.0.0.0/8 eth0
; bind interfaces only = yes
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
server role = standalone server
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 = no
map to guest = bad user
ntlm auth = yes
min protocol = SMB2
fruit:nfs_aces = no
vfs objects = catia fruit streams_xattr
fruit:aapl = yes
fruit:metadata = stream
fruit:model = MacSamba
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
map to guest = bad user
spotlight = yes
unix extensions = no
browseable = yes
read only = no
inherit permissions = yes
; logon path = \\%N\profiles\%U
; logon drive = H:
; logon script = logon.cmd
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
; add group script = /usr/sbin/addgroup --force-badname %g
; include = /home/samba/etc/smb.conf.%m
; idmap config * : backend = tdb
; idmap config * : range = 3000-7999
; idmap config YOURDOMAINHERE : backend = tdb
; idmap config YOURDOMAINHERE : range = 100000-999999
; template shell = /bin/bash
usershare max shares = 100
usershare allow guests = yes
[TimeMachineBackup]
path = /mnt/piraid/timemachine
vfs objects = fruit streams_xattr
fruit:time machine = yes
fruit:time machine max size = 3T
[homes]
comment = Home Directories
browseable = yes
path = /mnt/piraid/home/%S
read only = no
create mask = 0775
directory mask = 0775
valid users = pi, paddy
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700
[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
; write list = root, @lpadmin
root@silver:~# grep -v ^# /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
; interfaces = 0.0.0.0/8 eth0
; bind interfaces only = yes
log file = /var/log/samba/log.%m
max log size = 1000
logging = file
panic action = /usr/share/samba/panic-action %d
server role = standalone server
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 = no
map to guest = bad user
ntlm auth = yes
min protocol = SMB2
fruit:nfs_aces = no
vfs objects = catia fruit streams_xattr
fruit:aapl = yes
fruit:metadata = stream
fruit:model = MacSamba
fruit:posix_rename = yes
fruit:veto_appledouble = no
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:delete_empty_adfiles = yes
map to guest = bad user
spotlight = yes
unix extensions = no
browseable = yes
read only = no
inherit permissions = yes
; logon path = \\%N\profiles\%U
; logon drive = H:
; logon script = logon.cmd
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
; add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
; add group script = /usr/sbin/addgroup --force-badname %g
; include = /home/samba/etc/smb.conf.%m
; idmap config * : backend = tdb
; idmap config * : range = 3000-7999
; idmap config YOURDOMAINHERE : backend = tdb
; idmap config YOURDOMAINHERE : range = 100000-999999
; template shell = /bin/bash
usershare max shares = 100
usershare allow guests = yes
[TimeMachineBackup]
path = /mnt/piraid/timemachine
vfs objects = fruit streams_xattr
fruit:time machine = yes
fruit:time machine max size = 3T
[homes]
comment = Home Directories
browseable = yes
path = /mnt/piraid/home/%S
read only = no
create mask = 0775
directory mask = 0775
valid users = pi, paddy
;[netlogon]
; comment = Network Logon Service
; path = /home/samba/netlogon
; guest ok = yes
; read only = yes
;[profiles]
; comment = Users profiles
; path = /home/samba/profiles
; guest ok = no
; browseable = no
; create mask = 0600
; directory mask = 0700
[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
; write list = root, @lpadmin
El iMac funciona bien haciendo copias de seguridad en el recurso compartido de TimeMachineBackup como user:pi El MacBook pro M1 Pro puede navegar por la pi pero no se conecta a la casa de la pi o a TimeMachineBackup.
¿Cómo puedo diagnosticar el problema, amigos? (los registros smb no contienen mensajes significativos)