[Samba] Macs deleting files off RHEL8 server
I T
it at embassygraphics.com
Tue May 13 15:09:03 UTC 2025
*Mike Soliven*
*IT Manager*
Winnipeg, Manitoba, Canada R2X 2Y1
204.697.3338 Ext.1235
www.embassygraphics.com
CONFIDENTIALITY NOTICE: This electronic transmission and any attachment are
the confidential property of the sender, and the materials are privileged
communications intended solely for the receipt, use, benefit, and
information of the intended recipient indicated above. If you are not the
intended recipient, you are hereby notified that any review, disclosure,
copying, distribution, or the taking of any action in reliance on the
contents of this electronic transmission is strictly prohibited, and may
result in legal liability on your part. If you have received this email in
error, please forward back to sender and destroy the electronic
transmission.
Hi,
That was redacted to remove the users. Here's the output from testparm -s:
Server role: ROLE_STANDALONE
# Global parameters
[global]
log file = /var/log/samba/%I-%a.%U.%m.%S.-%v.log
printcap name = cups
security = USER
workgroup = SAMBA
fruit:copyfile = yes
fruit:delete_empty_adfiles = yes
fruit:wipe_intentionally_left_blank_rfork = yes
fruit:nfs_aces = no
fruit:veto_appledouble = no
fruit:posix_rename = yes
fruit:model = MacSamba
fruit:metadata = stream
idmap config * : backend = tdb
cups options = raw
locking = No
mangled names = no
vfs objects = fruit streams_xattr
[X5]
create mask = 02777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
hide files =
/.*/DesktopFolderDB/TrashFor%m/resource.frk/AppleDouble/.DS_Store/_/afpDeleted543089
path = /raid/data/esfs/X5
read only = No
valid users = judeo ARAXI print36 WIDETEK COLOURMGT print35 colour60
colour61 colour62 colour63 colour64 colour65 colour66 colour67 colour68
colour69 scan1 scan2 print30 print31 print32 print33 print34 print37 data45
data colour70 ColourQC print39 pmerin pmlee
vfs objects = full_audit
full_audit:failure = all
full_audit:success = all
full_audit:prefix = Embassy|%U|%I|%m|%S
[RAID]
browseable = No
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
hide files =
/.*/DesktopFolderDB/TrashFor%m/resource.frk/AppleDouble/.DS_Store/_/afpDeleted543089
path = /raid
read only = No
valid users = it
vfs objects = full_audit
On Tue, May 13, 2025 at 7:01 AM <samba-request at lists.samba.org> wrote:
> Send samba mailing list submissions to
> samba at lists.samba.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.samba.org/mailman/listinfo/samba
> or, via email, send a message with subject or body 'help' to
> samba-request at lists.samba.org
>
> You can reach the person managing the list at
> samba-owner at lists.samba.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of samba digest..."
> Today's Topics:
>
> 1. Macs deleting files off RHEL8 server. (I T)
> 2. Re: Macs deleting files off RHEL8 server. (Rowland Penny)
> 3. Re: Samba 4.19 and OpenLDAPs (Shannon Price)
> 4. samba-tool ntacl setting groups as users (Steffen Wurm)
> 5. Re: samba-tool ntacl setting groups as users (Rowland Penny)
>
>
>
> ---------- Forwarded message ----------
> From: I T <it at embassygraphics.com>
> To: samba at lists.samba.org
> Cc:
> Bcc:
> Date: Mon, 12 May 2025 13:51:39 -0500
> Subject: [Samba] Macs deleting files off RHEL8 server.
> I’ve got a situation with my Macs connecting to a Linux server via SMB
> where files/folders are randomly getting deleted from the server. The
> server logs are showing that a Mac is deleting them, but I know for a fact
> that it’s not human error, as my users are very vigilant in that regard,
> and the files/folders have no correlation to each other.Is there anyway of
> finding out how/why my Macs are deleting files/folders without any rhyme or
> reason? Would appreciate any advice or insight.The computers are a mix of
> Intel Mac Mini - macOS 12.7.6 and M2 Mac Mini - macOS 14.7.2, connected via
> SMB to a Lenovo SR650 server running RHEL 8 and Lenovo DE6000F SAN.1Gb
> ethernet via Cat6 cables through an HP5406zl switch.*nsmb conf file on
> Macs:*[default]
> signing_required=no
> streams=yes
> notify_off=yes
> port445=no_netbios
> soft=yes
> dir_cache_max_cnt=0
> dir_cache_max=0
> dir_cache_off=yes
> protocol_vers_map=4
> validate_neg_off=yes
> mc_on=yes
> mc_prefer_wired=yes
>
> *smb config file on server:*[global]
> #log level = 6 #####log level = 7 passdb:5:@/var/log/samba/passdb.log
> auth:10:@/var/log/samba/auth.log locking:10:@/var/log/samba/locking.log
> scavenger:10:@/var/log/samba/scavenger.log smb:10:@/var/log/samba/smb.log
> smb2:10:@/var/log/samba/smb2.log
> smb2_credits:10:@/var/log/samba/smb2_credits.log
> fruit:10:@/var/log/samba/fruit.log preopen:10:@/var/log/samba/preopen.log
> recycle:10:@/var/log/samba/recycle.log auth_audit:10:@
> /var/log/AuthAudit.log
> full_audit:10:@/var/log/fullAudit.log extd_audit:10:@
> /var/log/extd_audit.log
> workgroup = SAMBA
> security = user passdb backend = tdbsam# vfs objects = catia fruit
> streams_xattr
> # fruit:aapl = yes
> # fruit:nfs_aces = no
> # fruit:resource = file vfs objects = fruit streams_xattr
> fruit:metadata = stream
> fruit:model = MacSamba
> fruit:posix_rename = yes
> fruit:veto_appledouble = no
> fruit:nfs_aces = no
> fruit:wipe_intentionally_left_blank_rfork = yes
> fruit:delete_empty_adfiles = yes
> fruit:copyfile = yes
> #192.168.6.41-Vista.colourqc.macbook-pro.%S.-4.19.4.log
> log file = /var/log/samba/%I-%a.%U.%m.%S.-%v.log
> mangled names = no
> locking = no printing = cups
> printcap name = cups
> load printers = yes
> cups options = raw[X5]
> #########Testing Oct24:
> #ea support = yes
> #store dos attributes = yes
> #full_audit:priority = info
> #full_audit:facility = local5
> #full_audit:priority = ALERT # 0: emergency level 1: alert, 2: critical, 3:
> err, 4: warning, 5: notice: 6: info 7: debug
> directory mask = 2777
> #
> vfs objects = full_audit
>
> #Embassy|araxi|192.168.0.92|hw33240-31|X5|fget_dos_attributes|ok|/raid/data/esfs/X5/Jobs/68272....
> full_audit:prefix = Embassy|%U|%I|%m|%S
> #Add: symlinkat readlinkat linkat
> # man 8 VFS_FULL_AUDIT full_audit:failure = all !open full_audit:failure
> = all?
> #full_audit:success = close create_file fallocate fget_dos_attributes
> fsetxattr lock lstat mkdirat mknodat pwrite_recv pread pread_send pwrite
> translate_name unlinkat write
> #full_audit:failure = close create_file fallocate fget_dos_attributes
> fsetxattr lock lstat mkdirat mknodat pwrite_recv pread pread_send pwrite
> translate_name unlinkat write
> full_audit:success = all
> full_audit:failure = all
> # full_audit:failure = read pread write pwrite
> ## Bad : full_audit:failure = mkdir pwrite rename rmdir unlink
> ##### full_audit:facility = local5
> ##### full_audit:priority = debug
> ########
> browseable = yes
> writeable = yes
> directory mask = 0777
> path = /raid/data/esfs/X5
> force create mode = 0777
> printable = no
> hide files =
>
> /.*/DesktopFolderDB/TrashFor%m/resource.frk/AppleDouble/.DS_Store/_/afpDeleted543089
> create mask = 2777
> valid users = ***Removed usernames for privacy
> hide dot files = yes
> force directory mode = 777
> vfs objects = full_audit
> # full_audit:prefix = Work|%U|%I|%m|%S
> # full_audit:success = mkdir pwrite rename rmdir unlink
> # full_audit:failure = mkdir pwrite rename rmdir unlink
> # full_audit:facility = local5
> # full_audit:priority = NOTICE[RAID]
> valid users = it
> browseable = no
> writeable = yes
> directory mask = 0777
> path = /raid
> force create mode = 0777
> printable = no
> hide files =
>
> /.*/DesktopFolderDB/TrashFor%m/resource.frk/AppleDouble/.DS_Store/_/afpDeleted543089
> create mask = 0777
> hide dot files = yes
> force directory mode = 777
> vfs objects = full_audit
>
> Any advice or suggestions would be greatly appreciated.
>
>
> Kind regards,
>
>
> *Mike Soliven*
> *IT Manager*
> Winnipeg, Manitoba, Canada R2X 2Y1
> 204.697.3338 Ext.1235
> www.embassygraphics.com
>
>
> CONFIDENTIALITY NOTICE: This electronic transmission and any attachment are
> the confidential property of the sender, and the materials are privileged
> communications intended solely for the receipt, use, benefit, and
> information of the intended recipient indicated above. If you are not the
> intended recipient, you are hereby notified that any review, disclosure,
> copying, distribution, or the taking of any action in reliance on the
> contents of this electronic transmission is strictly prohibited, and may
> result in legal liability on your part. If you have received this email in
> error, please forward back to sender and destroy the electronic
> transmission.
>
>
>
>
> ---------- Forwarded message ----------
> From: Rowland Penny <rpenny at samba.org>
> To: samba at lists.samba.org
> Cc:
> Bcc:
> Date: Mon, 12 May 2025 20:13:44 +0100
> Subject: Re: [Samba] Macs deleting files off RHEL8 server.
> On Mon, 12 May 2025 13:51:39 -0500
> I T via samba <samba at lists.samba.org> wrote:
>
> > I’ve got a situation with my Macs connecting to a Linux server via SMB
> > where files/folders are randomly getting deleted from the server. The
> > server logs are showing that a Mac is deleting them, but I know for a
> > fact that it’s not human error, as my users are very vigilant in that
> > regard, and the files/folders have no correlation to each other.Is
> > there anyway of finding out how/why my Macs are deleting
> > files/folders without any rhyme or reason? Would appreciate any
> > advice or insight.The computers are a mix of Intel Mac Mini - macOS
> > 12.7.6 and M2 Mac Mini - macOS 14.7.2, connected via SMB to a Lenovo
> > SR650 server running RHEL 8 and Lenovo DE6000F SAN.1Gb ethernet via
> > Cat6 cables through an HP5406zl switch.*nsmb conf file on
> > Macs:*[default] signing_required=no
> > streams=yes
> > notify_off=yes
> > port445=no_netbios
> > soft=yes
> > dir_cache_max_cnt=0
> > dir_cache_max=0
> > dir_cache_off=yes
> > protocol_vers_map=4
> > validate_neg_off=yes
> > mc_on=yes
> > mc_prefer_wired=yes
> >
> > *smb config file on server:*[global]
> > #log level = 6 #####log level = 7 passdb:5:@/var/log/samba/passdb.log
> > auth:10:@/var/log/samba/auth.log
> > locking:10:@/var/log/samba/locking.log
> > scavenger:10:@/var/log/samba/scavenger.log
> > smb:10:@/var/log/samba/smb.log smb2:10:@/var/log/samba/smb2.log
> > smb2_credits:10:@/var/log/samba/smb2_credits.log
> > fruit:10:@/var/log/samba/fruit.log
> > preopen:10:@/var/log/samba/preopen.log
> > recycle:10:@/var/log/samba/recycle.log
> > auth_audit:10:@/var/log/AuthAudit.log
> > full_audit:10:@/var/log/fullAudit.log
> > extd_audit:10:@/var/log/extd_audit.log workgroup = SAMBA security =
> > user passdb backend = tdbsam# vfs objects = catia fruit streams_xattr
> > # fruit:aapl = yes # fruit:nfs_aces = no # fruit:resource = file vfs
> > objects = fruit streams_xattr fruit:metadata = stream
> > fruit:model = MacSamba
> > fruit:posix_rename = yes
> > fruit:veto_appledouble = no
> > fruit:nfs_aces = no
> > fruit:wipe_intentionally_left_blank_rfork = yes
> > fruit:delete_empty_adfiles = yes
> > fruit:copyfile = yes
> > #192.168.6.41-Vista.colourqc.macbook-pro.%S.-4.19.4.log
> > log file = /var/log/samba/%I-%a.%U.%m.%S.-%v.log
> > mangled names = no
> > locking = no printing = cups
> > printcap name = cups
> > load printers = yes
> > cups options = raw[X5]
> > #########Testing Oct24:
> > #ea support = yes
> > #store dos attributes = yes
> > #full_audit:priority = info
> > #full_audit:facility = local5
> > #full_audit:priority = ALERT # 0: emergency level 1: alert, 2:
> > critical, 3: err, 4: warning, 5: notice: 6: info 7: debug
> > directory mask = 2777
> > #
> > vfs objects = full_audit
> >
> #Embassy|araxi|192.168.0.92|hw33240-31|X5|fget_dos_attributes|ok|/raid/data/esfs/X5/Jobs/68272....
> > full_audit:prefix = Embassy|%U|%I|%m|%S
> > #Add: symlinkat readlinkat linkat
> > # man 8 VFS_FULL_AUDIT full_audit:failure = all !open
> > full_audit:failure = all?
> > #full_audit:success = close create_file fallocate fget_dos_attributes
> > fsetxattr lock lstat mkdirat mknodat pwrite_recv pread pread_send
> > pwrite translate_name unlinkat write
> > #full_audit:failure = close create_file fallocate fget_dos_attributes
> > fsetxattr lock lstat mkdirat mknodat pwrite_recv pread pread_send
> > pwrite translate_name unlinkat write
> > full_audit:success = all
> > full_audit:failure = all
> > # full_audit:failure = read pread write pwrite
> > ## Bad : full_audit:failure = mkdir pwrite rename rmdir unlink
> > ##### full_audit:facility = local5
> > ##### full_audit:priority = debug
> > ########
> > browseable = yes
> > writeable = yes
> > directory mask = 0777
> > path = /raid/data/esfs/X5
> > force create mode = 0777
> > printable = no
> > hide files =
> >
> /.*/DesktopFolderDB/TrashFor%m/resource.frk/AppleDouble/.DS_Store/_/afpDeleted543089
> > create mask = 2777
> > valid users = ***Removed usernames for privacy
> > hide dot files = yes
> > force directory mode = 777
> > vfs objects = full_audit
> > # full_audit:prefix = Work|%U|%I|%m|%S
> > # full_audit:success = mkdir pwrite rename rmdir unlink
> > # full_audit:failure = mkdir pwrite rename rmdir unlink
> > # full_audit:facility = local5
> > # full_audit:priority = NOTICE[RAID]
> > valid users = it
> > browseable = no
> > writeable = yes
> > directory mask = 0777
> > path = /raid
> > force create mode = 0777
> > printable = no
> > hide files =
> >
> /.*/DesktopFolderDB/TrashFor%m/resource.frk/AppleDouble/.DS_Store/_/afpDeleted543089
> > create mask = 0777
> > hide dot files = yes
> > force directory mode = 777
> > vfs objects = full_audit
> >
> > Any advice or suggestions would be greatly appreciated.
> >
> >
> >
>
> If that is the actual smb.conf from your Samba standalone server, then
> you do not seem to have any shares, there are no '[SHARENAME]' lines,
> can you please post the output of 'testparm -s'
>
> Rowland
>
>
>
>
>
>
>
More information about the samba
mailing list