Re: [CentOS] Centos and Selinux issue

2014-03-31 Thread Daniel J Walsh
Do you actually want the data to be available to both domains at the same time? Or could you setup different directories? If you want them to be both available you could label it postgresql_db_t, and then turn on the samba_export_all_ro_boolean or samba_export_all_rw_boolean. If this was to loo

Re: [CentOS] Centos and Selinux issue

2014-03-31 Thread John R Pierce
On 3/31/2014 7:18 AM, Alessandro Baggi wrote: > It's a better choice mount /dev/md2 on /mnt/data, make to dirs, one for > pgsql and another for sambashare, set relative context and start services? well, its not a good practice to have your postgres data directory in a shared location, as nothing

Re: [CentOS] Centos and Selinux issue

2014-03-31 Thread m . roth
Alessandro Baggi wrote: > Hi list, > I'm new to Centos and I've a very small knowledge of selinux use. > > I can disable it, but I prefer take it on for study. Ok, first thing you want to do is set it to permissive mode (setenforce 0, and edit /etc/selinux/config to Permissive from Enforcing). Tha