The Samba-Bugzilla – Bug 796
Cannot unset read-only folder attribute via Windows XP
Last modified: 2005-11-14 09:28:43 UTC
I have Samba 2.2.8a running on Mandrake Linux 9.0, in a LAN where I have some
Win2000 Pro clients and one WinXP Pro client. Samba acts as file server and PDC.
In a share I have some directories which are set to read-only by a script on
the Linux side, but any user can open up the folder properties on the Windows
client and remove the read-only attribute; this is ok, it's what I want, and
works perfectly on Win2000 clients.
On the WinXP client, instead, when opening the properties window the checkmark
near the read-only attribute is shown in grey; if the user removes it and
clicks on OK nothing happens, the attribute is not changed. The same user, when
accessing to the share using a Win2000 client, has no problems.
Setting and unsetting the read-only attribute on files works fine, also on
WinXP. Setting it on directories does not work, if I recall correctly, neither
on Win2000 nor on WinXP. But UNSETTING it on directories works fine on Win2000,
while it doesn't work on WinXP.
I'm not sure anymore that Samba has anything to do with this behaviour: I found
two articles on Microsoft's knowledge base stating that the readonly attribute
is totally ignored for folders, as it only indicates if the folder view has been
So, the strange thing to understand now becomes: how is it that it works fine on
Sorry, but the 2.2 is not under development any longer.
If you can reproduce this bug against the latest 3.0 release,
please reopen this bug and change the version in the report.