Bug 6153 - Samba 3.3.1: can't change a read-only file to read-write (ok in 3.2.8)
Samba 3.3.1: can't change a read-only file to read-write (ok in 3.2.8)
Status: NEW
Product: Samba 3.3
Classification: Unclassified
Component: File services
3.3.1
Sparc Windows XP
: P3 normal
: ---
Assigned To: Jeremy Allison
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-03 09:39 UTC by Arthur David Olson
Modified: 2009-05-03 02:27 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arthur David Olson 2009-03-03 09:39:49 UTC
Running Samba 3.3.1 on a Solaris 8 system, if I mount a writable share from a Windows XP system and get a DOS prompt, I can run the commands...
        echo hi > hi.txt
        attrib +r hi.txt
...without error, producing a read-only file. However, then running...
        attrib -r hi.txt
...(that is, trying to make the file read-write), I see...
        Access denied - R:\ado\tmp\hi.txt

If I revert the Solaris server to Samba 3.2.8, the "attrib -r" command works.

I see similar results when I do the moral equivalent of "attrib -r" and "attrib +r" using the Windows Explorer GUI (browse to directory, highlight file, right-click on it, click on "Properties", check (or uncheck) the "Read-only" attributes check-box, click "OK").

I CAN restore the file to read-write status by a longer-winded GUI path
(browse to directory, highlight file, right-click on it, click on "Properties",
click on the "Security" tab, click on my user entry in the upper panel, click on "Full Control" in the lower panel, and click on "OK").

        --ado
Comment 1 Jeremy Allison 2009-03-03 10:29:29 UTC
Can you get me a debug level 10 log of this please ? Are you using a ZFS filesystem ? I'm not sure where on Solaris the attribute bits are being mapped to (they go into extended attributes on Linux) and this should help me track it down.
Thanks.
Jeremy.