Description of problem:
Samba setting "map read only = yes" causes problem with read only files.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Add "map read only = yes" to the configuration file
2. Set a file shared by samba as read only from a Windows client
3. Try removing the read only attribute
Permission problem errors.
Removal of the read only attribute.
The bug is better described here:
Please consider including the provided patch or upgraded to a later version of samba, cause this bug cause serious problems with CVS/SVN workong copies placed on a samba share.
Samba 3.3.0 and Fedora 11 can use Extend Attributes to store DOS information.
Please avoid using map read only, and instead use store dos attributes.
Mapping dos attributes on permission bits have many side effects, so just use the work around described in the bug.
The patch is pushed upstream in the 3.3.X branch and will be available bundled with the next samba update.
Thanks. Unfortunately rebooting the server to enable the user_xattr on the mounted partitions is not an option for me. In the meantime I solved by rebuilding the SRC rpm and replacing the samba source tarball with a newer one, modifying the spec file where needed. Looking forward for the official update.
Unless you kept upgrading from an anicent release of Fedora, both ACLs and xattrs are enabled by default on extX file systems.
Infact xattrs are needed also by Selinux.
You got it. This is a server which has been upgraded since RedHat 7.1 up to FC11. That's why xattrs are not enabled. Selinux disabled too. BTW, the interim upgrade solved the problem. The next time I'll reboot the server I'll take care to enable the latest extX features.
Thanks again for you quick support!