Marc Muehlfeld
2014-Jul-01 20:43 UTC
[Samba] Problems with folders named the same like the share
Hello,
I saw a behavior on shares, where "msdfs root = yes" is set and wanted
to know if this is a bug or expected. The following I've done on a 4.1.9
member server:
* Create a share:
[demo]
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
folder.
* 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.
"demo2").
* 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".
Bug or expected?
Regards,
Marc
Jeremy Allison
2014-Jul-02 05:22 UTC
[Samba] Problems with folders named the same like the share
On Tue, Jul 01, 2014 at 10:43:16PM +0200, Marc Muehlfeld wrote:> Hello, > > I saw a behavior on shares, where "msdfs root = yes" is set and wanted > to know if this is a bug or expected. The following I've done on a 4.1.9 > member server: > > > * Create a share: > [demo] > 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 > folder. > > * 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. > "demo2"). > > * 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". > > > Bug or expected?Hmmm. Sounds like a bug to me. Can you log a bug in the bugzilla so at least we can track it ? Thanks ! Jeremy.