Héctor Sánchez Sanmartín
2008-Jan-10 18:35 UTC
[Samba] Windows XP always see folder with read-only attribute set
Dear all, I've got a linux server running samba-3.0.10 with some windows xp and windows 2k clients. My config is something like: [global] server string = aroprod workgroup = WORKGROUP hosts allow = 192.168.0. 127. security = share load printers = yes printing = cups printcap name = cups prefered master = yes os level = 65 read only = no [publica] path = /sis/publica/ read only = No guest ok = Yes nt acl support = No force user = sis force group = sis When accessing any folder within this "publica" share from a windows xp the folder's attribute "read-only" is set. Any file within this folder has got sis:sis ownership and u+rws,g+rws permissions; besides, even if windows says that is "read-only" I can browse inside it and create or delete any folder or file inside it, which is right as it is not a read-only share. Does anyone has an idea what could be happening and how to avoid windows showing it as "read-only"??? Many thanks in advance. Best regards -- H?ctor S?nchez Sanmart?n PlanaTec Software S.L. ** Castell?n (Spain) tlf: +34 964340560 ** fax: +34 964340562
Héctor Sánchez Sanmartín
2008-Jan-11 13:48 UTC
[Samba] Windows XP always see folder with read-only attribute set
Sorry, I forgot to mentioned that this behaviour happens only on windows xp clientes...win2k ones work perfectly. Just in case it can help. Any clue? Thanks in advance. H?ctor S?nchez Sanmart?n escribi?:> Dear all, > > I've got a linux server running samba-3.0.10 with some windows xp and > windows 2k clients. My config is something like: > > [global] > server string = aroprod > workgroup = WORKGROUP > hosts allow = 192.168.0. 127. > security = share > load printers = yes > printing = cups > printcap name = cups > prefered master = yes > os level = 65 > read only = no > > [publica] > path = /sis/publica/ > read only = No > guest ok = Yes > nt acl support = No > force user = sis > force group = sis > > When accessing any folder within this "publica" share from a windows > xp the folder's attribute "read-only" is set. Any file within this > folder has got sis:sis ownership and u+rws,g+rws permissions; besides, > even if windows says that is "read-only" I can browse inside it and > create or delete any folder or file inside it, which is right as it > is not a read-only share. > > Does anyone has an idea what could be happening and how to avoid > windows showing it as "read-only"??? > > Many thanks in advance. > > Best regards >-- H?ctor S?nchez Sanmart?n PlanaTec Software S.L. ** Castell?n (Spain) tlf: +34 964340560 ** fax: +34 964340562
James Lockie
2008-Jan-11 13:52 UTC
[Samba] Windows XP always see folder with read-only attribute set
Hector Sanchez wrote:> bjlockie@lockie.ca escribi?: >> Do the win2k clients show the same behaviour? >> > No they don't... I forgot to mentioned it. Any clue?? > > Thanks for the replyWindows clients have always been flaky for me. Do you log in to Windows networking on the WinXP machines?
Chris Smith
2008-Jan-11 16:05 UTC
[Samba] Windows XP always see folder with read-only attribute set
On Friday 11 January 2008, H?ctor S?nchez Sanmart?n wrote:> nt acl support = NoHave you tried it with the default "nt acl support = yes"? -- Chris
Héctor Sánchez Sanmartín
2008-Jan-11 17:10 UTC
[Samba] Windows XP always see folder with read-only attribute set
Chris Smith escribi?:> On Friday 11 January 2008, H?ctor S?nchez Sanmart?n wrote: > >> nt acl support = No >> > > Have you tried it with the default "nt acl support = yes"? > >yes, and still the same :( -- H?ctor S?nchez Sanmart?n PlanaTec Software S.L. ** Castell?n (Spain) tlf: +34 964340560 ** fax: +34 964340562
Rune Tønnesen
2008-Jan-11 17:38 UTC
[Samba] Windows XP always see folder with read-only attribute set
> Dear all, > > I've got a linux server running samba-3.0.10 with some windows xp and > windows 2k clients. My config is something like: > > [global] > server string = aroprod > workgroup = WORKGROUP > hosts allow = 192.168.0. 127. > security = share > load printers = yes > printing = cups > printcap name = cups > prefered master = yes > os level = 65 > read only = no > > [publica] > path = /sis/publica/ > read only = No > guest ok = Yes > nt acl support = No > force user = sis > force group = sis >May I suggest this [publica] path = /sis/publica/ public = yes # only guest = yes writable = yes force user = sis force group = sis This should solve your problem as samba by default set a share as read only and you need to set them to writable, hence "read only = No" is not equal to "writable yes". -- Venlig Hilsen/Best Regards Rune T?nnesen
Chris Smith
2008-Jan-11 18:11 UTC
[Samba] Windows XP always see folder with read-only attribute set
On Friday 11 January 2008, Rune T?nnesen wrote:> [publica] > ? ? ? ? ? path = /sis/publica/ > ? ? ? ? ? public = yes > # ? ? ? ? ?only guest = yes > ? ? ? ? ? writable = yes > ? ? ? ? ? force user = sis > ? ? ? ? ? force group = sis > > This should solve your problem as samba by default set a share as > read only and you need to set them to writable, hence "read only > No" is not equal to "writable = yes".man smb.conf "read only = No" _is_ equal to "writable = yes" also "guest ok = Yes" _is_ equal to "public = yes" I also maintain that for portability of the readability of smb.conf that the standard parameters should be used instead of the synonyms. This means using "guest ok" instead of "public" and "read only" instead of "writable" or "writable". It would help in the long run if the synonyms were deprecated and testparm warned of their usage. -- Chris
Chris Smith
2008-Jan-11 18:20 UTC
[Samba] Windows XP always see folder with read-only attribute set
On Friday 11 January 2008, Chris Smith wrote:> instead > of "writable" or "writable".SHould be "writeable" or "writable". -- Chris
Marco De Vitis
2008-Jan-14 14:20 UTC
[Samba] Re: Windows XP always see folder with read-only attribute set
Il 10/01/2008 19:19, H?ctor S?nchez Sanmart?n ha scritto:> Does anyone has an idea what could be happening and how to avoid windows > showing it as "read-only"???Sorry for not having noticed this thread before, because I would have saved you some time. What you describe is not a problem with Samba. It is a Windows "feature by design". Look here, and read especially the "CAUSE" section: http://support.microsoft.com/kb/326549/en-us -- Ciao, Marco.