Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-05 Thread Gordon Messmer
On 05/04/2018 11:15 PM, Warren Young wrote: On May 5, 2018, at 12:04 AM, Gordon Messmer wrote: On 05/04/2018 04:05 PM, Warren Young wrote: Alright, then why do I get that error when I give the command from this morning’s wiki text, and how do I avoid it? You get the error because that isn't

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Warren Young
On May 5, 2018, at 12:04 AM, Gordon Messmer wrote: > > On 05/04/2018 04:05 PM, Warren Young wrote: >> On May 4, 2018, at 4:11 PM, Louis Lagendijk wrote: >>> The comment is correct: chcon will not survive a relabel. You need to >>> update the database first (semanage fcontext) and then let a rela

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Gordon Messmer
On 05/04/2018 04:05 PM, Warren Young wrote: On May 4, 2018, at 4:11 PM, Louis Lagendijk wrote: The comment is correct: chcon will not survive a relabel. You need to update the database first (semanage fcontext) and then let a relabel apply the new context. Alright, then why do I get that error

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Warren Young
On May 4, 2018, at 6:35 PM, Earl A Ramirez wrote: > > You can check the labels using seinfo -t, below is what I had for samba I’m away from work now, so I can’t check it at the moment, but if that explained the problem, wouldn’t my chcon command also have failed? Clearly the SELinux type samb

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Earl A Ramirez
On 4 May 2018 at 19:49, Warren Young wrote: > On May 4, 2018, at 5:13 PM, Gordon Messmer > wrote: > > > > 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/

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Warren Young
On May 4, 2018, at 5:13 PM, Gordon Messmer wrote: > > 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:

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Gordon Messmer
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 "no

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Warren Young
On May 4, 2018, at 4:11 PM, Louis Lagendijk wrote: > > The comment is correct: chcon will not survive a relabel. You need to > update the database first (semanage fcontext) and then let a relabel > apply the new context. Alright, then why do I get that error when I give the command from this mo

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Akemi Yagi
On Fri, May 4, 2018 at 3:11 PM, Louis Lagendijk wrote: > On Fri, 2018-05-04 at 14:55 -0700, Akemi Yagi wrote: >> On Fri, May 4, 2018 at 2:26 PM, Warren Young >> wrote: >> > On May 4, 2018, at 3:03 PM, Akemi Yagi wrote: >> > > >> > > On Fri, May 4, 2018 at 12:03 PM, Warren Young > > > > wrote: >>

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Louis Lagendijk
On Fri, 2018-05-04 at 14:55 -0700, Akemi Yagi wrote: > On Fri, May 4, 2018 at 2:26 PM, Warren Young > wrote: > > On May 4, 2018, at 3:03 PM, Akemi Yagi wrote: > > > > > > On Fri, May 4, 2018 at 12:03 PM, Warren Young > > > wrote: > > > > > > > >$ sudo chcon -R -t samba_share_t /path/to/sha

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Akemi Yagi
On Fri, May 4, 2018 at 2:26 PM, Warren Young wrote: > On May 4, 2018, at 3:03 PM, Akemi Yagi wrote: >> >> On Fri, May 4, 2018 at 12:03 PM, Warren Young wrote: >>> >>>$ sudo chcon -R -t samba_share_t /path/to/share >> >> Updated the page as suggested. Thanks. > > Thanks! > > I now see another

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Warren Young
On May 4, 2018, at 3:03 PM, Akemi Yagi wrote: > > On Fri, May 4, 2018 at 12:03 PM, Warren Young 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 ve

Re: [CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Akemi Yagi
On Fri, May 4, 2018 at 12:03 PM, Warren Young 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…

[CentOS] Samba HOWTO wiki bug: chcon samba_share_t

2018-05-04 Thread Warren Young
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/t