Displaying 20 results from an estimated 4000 matches similar to: "Centos SetUpSamba wiki page"
2018 May 04
4
Samba HOWTO wiki bug: chcon samba_share_t
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
2018 May 04
3
Samba HOWTO wiki bug: chcon samba_share_t
On Fri, 2018-05-04 at 14:55 -0700, Akemi Yagi wrote:
> 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:
> > > >
> > > >
2018 May 04
0
Samba HOWTO wiki bug: chcon samba_share_t
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
2018 May 05
2
Samba HOWTO wiki bug: chcon samba_share_t
On 05/04/2018 04:05 PM, Warren Young wrote:
> On May 4, 2018, at 4:11 PM, Louis Lagendijk <louis at fazant.net> 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
2018 May 05
0
Samba HOWTO wiki bug: chcon samba_share_t
On May 5, 2018, at 12:04 AM, Gordon Messmer <gordon.messmer at gmail.com> wrote:
>
> On 05/04/2018 04:05 PM, Warren Young wrote:
>> On May 4, 2018, at 4:11 PM, Louis Lagendijk <louis at fazant.net> 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
2018 May 04
0
Samba HOWTO wiki bug: chcon samba_share_t
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
2017 Oct 23
0
Unable to apply mysqld_db_t to mysql directory
On 23 October 2017 at 19:18, Bernard Fay <bernard.fay at gmail.com> wrote:
> Thanks, I managed to fix /var/lib/mysql
>
> # ls -ldZ /var/lib/mysql
> drwxr-xr-x. mysql mysql system_u:object_r:mysqld_db_t:s0 /var/lib/mysql
>
> To fix it, I tried:
> semanage fcontext -d -e /var/lib/mysql
> this command returned:
> KeyError: /var/lib/mysql
> I tried restorecon
2016 Dec 07
0
You have not permission to view content of this location
On Wed, Dec 07, 2016 at 05:08:11PM +0800, truename wrote:
> sudo chown u1 /data
> sudo chgrp g1 /data
>
> sudo chmod ugo+rwx /data
>
> I edit /etc/samba/smb.conf:
>
> [data]
> comment = data
> path = /data
> valid users = u1,u2
> write list = u1,u2
> create mask = 0777
> sync always = Yes
> ; hide dot files = yes
> ;
2018 May 04
2
Samba HOWTO wiki bug: chcon samba_share_t
On May 4, 2018, at 5:13 PM, Gordon Messmer <gordon.messmer at gmail.com> 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: unrecognized arguments:
2018 May 04
0
Samba HOWTO wiki bug: chcon samba_share_t
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.
>
2018 May 05
0
Samba HOWTO wiki bug: chcon samba_share_t
On 4 May 2018 at 19:49, Warren Young <warren at etr-usa.com> wrote:
> On May 4, 2018, at 5:13 PM, Gordon Messmer <gordon.messmer at gmail.com>
> 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
2018 May 04
0
Samba HOWTO wiki bug: chcon samba_share_t
On May 4, 2018, at 4:11 PM, Louis Lagendijk <louis at fazant.net> 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 morning?s wiki text, and how do I avoid it?
2017 Oct 23
2
Unable to apply mysqld_db_t to mysql directory
Thanks, I managed to fix /var/lib/mysql
# ls -ldZ /var/lib/mysql
drwxr-xr-x. mysql mysql system_u:object_r:mysqld_db_t:s0 /var/lib/mysql
To fix it, I tried:
semanage fcontext -d -e /var/lib/mysql
this command returned:
KeyError: /var/lib/mysql
I tried restorecon anyway:
restorecon -Rv /var/lib/mysql
But not better:
ls -ldZ /var/lib/mysql
drwxr-xr-x. mysql mysql system_u:object_r:var_lib_t:s0
2009 Mar 19
1
SELinux - different context on subdirectories
Hi all,
I have created a directory /srv with the following SELinux context:
system_u:object_r:var_t
Now I want to create a subdirectory within /srv which should get a
different context. So I tried to set e.g.:
semanage fcontext -a -t samba_share_t /srv/samba
/sbin/restorecon -v /srv/samba
but the context is always reset to:
system_u:object_r:var_t
What am I missing?
Best Regards
Marcus
2018 May 04
2
Samba HOWTO wiki bug: chcon samba_share_t
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
2012 Nov 26
0
Installation and Setup of Samba4 AD DC on CentOS6
I have setup a Samba4 server and would like to report my experiences in
the hope that it may be helpful to others.
I basically followed the official Samba4 HowTo, which is very good.
Based on what I have seen, this is the only document I would recommend
people to follow. I will try not to repeat things that are covered in
the HowTo, but rather focus on what I did differently or additionally,
2014 Dec 17
0
selinux-policy update resets /etc/selinux/targeted/contexts/files/file_contexts?
On 12/17/2014 05:07 AM, Patrick Bervoets wrote:
> Hi,
>
> On an internal webserver (latest C6) I want smb-access to /var/www/html/
> In april I did
> chcon -R -t public_content_rw_t /var/www/html/
> setsebool -P allow_smbd_anon_write 1
> setsebool -P allow_httpd_anon_write 1
> echo "/var/www/html/ --
>
2017 Oct 23
0
Unable to apply mysqld_db_t to mysql directory
On 23 Oct 2017 5:26 pm, "Bernard Fay" <bernard.fay at gmail.com> wrote:
Interesting to see the Equivalence. As a first thing, I tried:
semanage fcontext -a -e /var/lib/mysql.old /var/lib/mysql
then
restorecon -R /var/lib/mysql
# semanage fcontext -lC
SELinux fcontext type
Context
/home/users(/.*)? all files
2017 Dec 12
0
Spamassassin vs. SELinux trouble
On 12/12/2017 04:37 AM, Nicolas Kovacs wrote:
> Spamassassin has been working nicely on my main server running CentOS 7
> and Postfix. SELinux is activated (Enforcing).
> ...
> SELinux is preventing /usr/bin/perl from 'read, write' accesses on the
> file /var/log/spamassassin/.spamassassin/bayes_toks.
> ...
> Source Context system_u:system_r:spamd_t:s0
2019 May 08
3
Issues trying to change the selinux context
Warren Young wrote:
> On May 8, 2019, at 9:31 AM, mark <m.roth at 5-cent.us> wrote:
>
>> semanage -fcontext -a -t lib_t "/<elided>/smwa/webagent/bin(/.*).so?
>
> [snip]
>
>> What am I doing wrong?
>>
<snip>
> Also, I?m confused by the parens in your file path. Whether your shell
> is or not is a different question.
I'm following