Re: Samba HOWTO wiki bug: chcon samba_share_t

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



On 05/04/2018 12:03 PM, Warren Young wrote:
…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

What is "noise" exactly?  I don't get errors from that command:

# semanage fcontext -at samba_share_t /srv/samba
#

That and the following restorecon command can be replaced by a single shorter command, which also fixes the symptom:

As others pointed out, chcon is not a replacement for registering a persistent file context.
_______________________________________________
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