[CentOS] Samba HOWTO wiki bug: chcon samba_share_t

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

On Fri, May 4, 2018 at 12:03 PM, Warren Young <warren at etr-usa.com> wrote:
> In this wiki article:
>    https://wiki.centos.org/HowTos/SetUpSamba
> …there is a command down in section 2 that gives an error here on CentOS 7:
>     $ sudo semanage fcontext –at samba_share_t /path/to/share
>     …noise noise noise…
>     semanage: error: unrecognized arguments: samba_share_t /path/to/share
> That and the following restorecon command can be replaced by a single shorter command, which also fixes the symptom:
>     $ sudo chcon -R -t samba_share_t /path/to/share

Updated the page as suggested. Thanks.