Re: Centos 7 Samba - all shares read only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux