Bug 10690 - Write access denied, if folder has the same name than the share, if msdfs root = yes
Summary: Write access denied, if folder has the same name than the share, if msdfs roo...
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: 4.1.9
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
Depends on:
Reported: 2014-07-02 19:13 UTC by Marc Muehlfeld
Modified: 2016-08-26 00:28 UTC (History)
1 user (show)

See Also:

level 10 debug log (797.87 KB, text/plain)
2014-07-02 19:16 UTC, Marc Muehlfeld
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Muehlfeld 2014-07-02 19:13:51 UTC
I saw a behavior on shares, where "msdfs root = yes" is set. The following I've done on a 4.1.9 member server:

* Create a share:
        path = /srv/samba/
        msdfs root = yes
        browseable = yes

* Create a subfolder "demo" somewhere on the shared directory on Linux
and make sure, that a group you are member off has write access to the

* On Windows create a new file in that folder. -> Works

* Try renaming the file. -> fails (access denied).

* Rename the folder on Linux to something else that the sharename (e. g.

* Try renaming the file again. -> Works

Also I saw that it's not possible to create a folder "demo" (same name
than the sharename) on the share from Windows or rename the folder.

All the above is possible without any problems, if done on a share
without "msdfs root = yes".

I had posted this already on the samba mailing list. Jeremy thinks, it is a bug (http://www.spinics.net/lists/samba/msg117119.html).
Comment 1 Marc Muehlfeld 2014-07-02 19:16:24 UTC
Created attachment 10071 [details]
level 10 debug log

Attached is a level 10 debug log, that captures the try to rename a file in a folder ("Abteilungen"), that is on a share with the same name ("\\genome\abteilungen"). This share has "msdfs root = yes".

The renaming is denied. If I rename the folder to e. g. "Abteilungen" on Linux (also doesn't work on Windows via Samba), then the file renaming works.
Comment 2 Marc Muehlfeld 2016-08-26 00:28:19 UTC
I tried this again on 4.5.0rc2: The problem does not exist anymore with this version.