Bug 1625170 - samba-4.7.10-0.fc27 breaks OSX clients
Summary: samba-4.7.10-0.fc27 breaks OSX clients
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: samba
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Guenther Deschner
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1644284
TreeView+ depends on / blocked
 
Reported: 2018-09-04 10:17 UTC by Harald Reindl
Modified: 2018-10-30 11:33 UTC (History)
10 users (show)

Fixed In Version: samba-4.8.5-1.fc28 samba-4.7.10-1.fc27
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1644284 (view as bug list)
Environment:
Last Closed: 2018-10-10 22:46:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Harald Reindl 2018-09-04 10:17:39 UTC
OSX: 10.13.6 (17G65)
Samba: 4.7.10-0.fc27

at save on a smb share the edited file disappears and trying to restore it from a backup SOX says it's not possible because the file exists (i assume it believes it exists and is locked)

sorry, i am not a Apple user and can only tell what users describe me

either stay at samba 4.7.9-0.fc27.x86_64 or don't install the latest Apple updates, clients with outstanding updates are not affected at all

Comment 1 Harald Reindl 2018-09-04 10:19:05 UTC
[global]
 server string = fileserver.example.com
 netbios name = fileserv er
 smb ports = 445
 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE

 interfaces = 192.168.196.6
 bind interfaces only = yes

 hosts allow = 192.168.196.18 192.168.196.30 
 hosts deny = all
 hide files = /.AppleDesktop/.AppleDouble/.Parent/desktop.ini/$RECYCLE.BIN/
 veto files = /.AppleDesktop/.AppleDouble/.Parent/desktop.ini/$RECYCLE.BIN/
 delete veto files = yes

 access based share enum = yes
 inherit permissions = yes
 inherit acls = yes
 nt acl support = no
 nt pipe support = yes
 browseable = yes
 writeable = yes
 guest ok = no
 wide links = no
 follow symlinks = no
 oplocks = no
 level2 oplocks = no
 vfs objects = catia fruit streams_xattr
 ea support = yes

 workgroup = WORKGROUP
 lm announce = no
 lanman auth = no
 ntlm auth = no
 client lanman auth = no
 client ntlmv2 auth = yes
 client signing = auto
 server signing = auto
 security = user
 restrict anonymous = 2
 invalid users = nobody root admin administrator guest gast pcguest anonymous
 log file = /var/log/samba/samba.log
 log level = 1 auth:2 passdb:2 tdb:1 vfs:1 smb:1 locking:1 sam:1 winbind:1 idmap:1 quota:1 acls:0 msdfs:1 dmapi:1 registry:1 printdrivers:0 lanman:0 rpc_parse:0 rpc_srv:0 rpc_cli:0
 max log size = 4096
 os level = 0
 domain master = no
 preferred master = no
 local master = no
 disable netbios = yes
 wins support = no
 browse list = no
 dns proxy = no
 multicast dns register = no
 name resolve order = host bcast
 max smbd processes = 50
 use sendfile = yes
 read raw = yes
 write raw = yes
 getwd cache = yes
 stat cache = yes
 max stat cache size = 256
 ldap ssl = no
 time server = no
 unix extensions = no
 show add printer wizard = no
 load printers = no
 printable = no
 printing = bsd
 printcap name = /dev/null

Comment 2 Guenther Deschner 2018-09-04 12:39:55 UTC
Which application is used to reproduce this? I tried with "TextEdit" on a share with the above configuration on MacOS 10.13.6 and it did just work fine.

Comment 3 Harald Reindl 2018-09-04 12:41:22 UTC
the user says *every* application because OSX is using the same abstraction layer everywhere

Comment 4 Harald Reindl 2018-10-04 08:53:39 UTC
the same on F28 with 4.8.5 with the same client machine - files randomly diseppear at save, 4.8.4 works :-(

Comment 5 Harald Reindl 2018-10-04 08:56:42 UTC
[root@rh:~]$ cat /etc/systemd/system/smb.service
[Unit]
Description=Samba SMB Daemon
After=network-online.target
Requires=network-online.target

[Service]
Type=notify
NotifyAccess=all
LimitNOFILE=32768
ExecStart=/usr/sbin/smbd  --foreground --no-process-group
ExecReload=/usr/bin/kill -HUP $MAINPID
Restart=always
RestartSec=1
Nice=19

PrivateTmp=yes
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectControlGroups=yes
MemoryDenyWriteExecute=yes
CapabilityBoundingSet=CAP_CHOWN CAP_SETGID CAP_SETUID CAP_DAC_OVERRIDE CAP_KILL CAP_NET_BIND_SERVICE CAP_IPC_LOCK CAP_SYS_CHROOT
SystemCallFilter=~acct modify_ldt add_key adjtimex clock_adjtime delete_module fanotify_init finit_module get_mempolicy init_module io_destroy io_getevents iopl ioperm io_setup io_submit io_cancel kcmp kexec_load keyctl lookup_dcookie mbind migrate_pages mount move_pages open_by_handle_at perf_event_open pivot_root process_vm_readv process_vm_writev ptrace remap_file_pages request_key set_mempolicy swapoff swapon umount2 uselib vmsplice

IPAddressDeny=any
IPAddressAllow=localhost
IPAddressAllow=10.0.0.0/8
IPAddressAllow=192.168.0.0/16
IPAddressAllow=172.16.0.0/12

ReadOnlyPaths=/etc
ReadOnlyPaths=/usr
ReadOnlyPaths=/var/lib
ReadWritePaths=/var/lib/samba
ReadWritePaths=/usr/local

Comment 6 Harald Reindl 2018-10-04 13:11:52 UTC
-------- Weitergeleitete Nachricht --------
Betreff: Re: [Samba] 4.7.10 / 4.8.5 disappearing files on OSX clients at save
Datum: Thu, 4 Oct 2018 11:10:59 +0200
Von: Ralph Böhme <slow>
An: Reindl Harald <h.reindl>
Kopie (CC): samba.org

On Thu, Oct 04, 2018 at 10:57:26AM +0200, Reindl Harald via samba wrote:
>has someone an idea what change in teh latest 4.7/4.8 updates can
>trigger that behavior and how that can be solved instead lock samba updates?

there are known issues in fruit that I'm currently working on.

Comment 7 Guenther Deschner 2018-10-04 15:42:53 UTC
I've been discussing this with Ralph and I'm preparing fedora test packages.

Comment 8 Guenther Deschner 2018-10-05 07:42:51 UTC
Harald, can you test one of these builds?

F27 x86_64 
https://koji.fedoraproject.org/koji/taskinfo?taskID=30050210

F28 x86_64
https://koji.fedoraproject.org/koji/taskinfo?taskID=30047524

Comment 9 Harald Reindl 2018-10-05 08:59:47 UTC
fix confirmed and update deployed - no F27 machine any longer here - thanks god i remebered yesterday that i had to downgrade samba before dist-upgrade to F28 on production machines and seeked on koji for a working build :-)

[harry@srv-rhsoft:/downloads]$ ls | grep rpm
-rw-r----- 1 harry verwaltung 136K 2018-10-05 10:40 libsmbclient-4.8.5-1.fc28.x86_64.rpm
-rw-r----- 1 harry verwaltung 110K 2018-10-05 10:40 libwbclient-4.8.5-1.fc28.x86_64.rpm
-rw-r----- 1 harry verwaltung 711K 2018-10-05 10:40 samba-4.8.5-1.fc28.x86_64.rpm
-rw-r----- 1 harry verwaltung 5,0M 2018-10-05 10:40 samba-client-libs-4.8.5-1.fc28.x86_64.rpm
-rw-r----- 1 harry verwaltung 204K 2018-10-05 10:40 samba-common-4.8.5-1.fc28.noarch.rpm
-rw-r----- 1 harry verwaltung 167K 2018-10-05 10:40 samba-common-libs-4.8.5-1.fc28.x86_64.rpm
-rw-r----- 1 harry verwaltung 452K 2018-10-05 10:40 samba-common-tools-4.8.5-1.fc28.x86_64.rpm
-rw-r----- 1 harry verwaltung 282K 2018-10-05 10:40 samba-libs-4.8.5-1.fc28.x86_64.rpm

Comment 10 Fedora Update System 2018-10-05 11:14:12 UTC
samba-4.7.10-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-7ad33ae27d

Comment 11 Fedora Update System 2018-10-05 11:21:12 UTC
libldb-1.3.2-2.fc27.1.2.3 samba-4.7.10-1.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-7ad33ae27d

Comment 12 Fedora Update System 2018-10-05 11:29:11 UTC
samba-4.8.5-1.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b1e7740dcf

Comment 13 Fedora Update System 2018-10-05 18:07:29 UTC
libldb-1.3.2-2.fc27.1.2.3, samba-4.7.10-1.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-7ad33ae27d

Comment 14 Fedora Update System 2018-10-05 19:32:56 UTC
samba-4.8.5-1.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b1e7740dcf

Comment 15 Fedora Update System 2018-10-10 22:46:15 UTC
samba-4.8.5-1.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2018-10-14 23:29:10 UTC
libldb-1.3.2-2.fc27.1.2.3, samba-4.7.10-1.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.