RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2046515 - Bug in hide dot files samba feature, files have the hidden bit set while they shouldn't
Summary: Bug in hide dot files samba feature, files have the hidden bit set while they...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: samba
Version: 8.5
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Andreas Schneider
QA Contact: sssd-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-01-26 20:41 UTC by svenvd.github
Modified: 2022-02-23 14:00 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-02-16 10:04:33 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-109910 0 None None None 2022-01-26 20:43:08 UTC
Samba Project 14977 0 None None None 2022-02-16 08:12:48 UTC

Description svenvd.github 2022-01-26 20:41:25 UTC
Red Hat Enterprise Linux release 8.5 (Ootpa)
samba-4.14.5-7.el8_5.x86_64

Files have the hidden bit while they shouldn't

How reproducible

I have the *hide dot files =* *yes* enabled on the samba server

On another RHEL 8 server on the mounted samba I did some tests where I look at the results on a windows with the same share mounted

1. touch .file3 ( OK hidden DOS flag enabled )   
2. mv -v .file3 file3 ( OK hidden DOS flag disabled )
3. mv -v file3 .file3 ( OK hidden DOS flag enabled ) 
4. mv -v .file3 file3 ( FAIL hidden DOS flag enabled, should be disabled )

Another test

1. touch .file4.syncthing.tmp ( OK hidden DOS flag enabled )   
2. mv -v .file4.syncthing.tmp file4 ( OK hidden DOS flag disabled )
3. mv -v file4 .file4.syncthing.tmp ( OK hidden DOS flag enabled ) 
4. mv -v .file4.syncthing.tmp file4 ( FAIL hidden DOS flag enabled, should be disabled )


Notice how the action 2. and 4. are the same but are causing different outcomes.

I expect steps 4. to remove the hidden bit.

This is causing issues. For example: https://forum.syncthing.net/t/syncthing-sets-hidden-dos-bit/17931/2

Comment 2 Andreas Schneider 2022-02-02 10:51:58 UTC
Could you please open an upstream bug for this issue?

https://bugzilla.samba.org/

Comment 3 Andreas Schneider 2022-02-09 10:06:29 UTC
Ping?

Comment 4 svenvd.github 2022-02-13 23:20:50 UTC
https://bugzilla.samba.org/show_bug.cgi?id=14177

Comment 5 svenvd.github 2022-02-15 23:49:18 UTC
Sorry this is the correct link: https://bugzilla.samba.org/show_bug.cgi?id=14977

Comment 6 Andre Boscatto 2022-02-16 10:04:33 UTC
Upstream is in charge of this issue so we are closing this BZ.


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