[CentOS] Centos 7 Samba - all shares read only

Jose Maria Terry Jimenez jtj at tssystems.net
Mon May 8 12:45:55 UTC 2017


El 8/5/17 a las 14:21, Gary Stainburn escribió:

>
>> May help (add the users to that group)
>>
>> Best,
> I have done some testing and found that I have got to the point where I can
> create a 'New Text Document', edit it in notepad and save the changes.
>
> I can now also create a new blank spreadsheet, save it, load it, edit and save
> the changes.
>
> However, if I open an existing spreadsheet it still comes up as read only.
> Doing a 'ls -l' on the original file shows a '+' on the end of the file
> permissions.  Other files have a '.' on the end.  The newly created files
> have a normal file permission.
>
> I've had a quick Google and found that the '+' indicates a ACL has been
> applied.  I have no idea how this happened as until now I wasn't even aware
> of them.
>
> Is there an easy way to remove the ACL from all of the files in these
> directory trees?
>
>
Yes, do this (remove SeLinux context):
||
find /path/to/your/folder -exec sudo setfattr -h -x security.selinux {} \;

Hope this helps and solve your problem



More information about the CentOS mailing list