[CentOS] Samba HOWTO wiki bug: chcon samba_share_t

Fri May 4 21:55:44 UTC 2018
Akemi Yagi <amyagi at gmail.com>

On Fri, May 4, 2018 at 2:26 PM, Warren Young <warren at etr-usa.com> wrote:
> On May 4, 2018, at 3:03 PM, Akemi Yagi <amyagi at gmail.com> wrote:
>>
>> On Fri, May 4, 2018 at 12:03 PM, Warren Young <warren at etr-usa.com> wrote:
>>>
>>>    $ sudo chcon -R -t samba_share_t /path/to/share
>>
>> Updated the page as suggested. Thanks.
>
> Thanks!
>
> I now see another instance of this in section 3.  Instead of copying the text verbatim, it should probably be:
>
>     chcon -R -t samba_share_t /mnt/data
>
> …in order to match the text above it.

Warren,

I was just informed that the chcon command your suggested was
originally there, but it was replaced with the 2 line version sometime
ago. The reason given was "Replace chcon by semanage/restorecon pair
to survive filesystem relabel".

What do you think?

Akemi