Monday, 15 September 2014

nginx - Centos 7 SELinux Policy with Samba -



nginx - Centos 7 SELinux Policy with Samba -

my server under centos 7 has samba , nginx services installed on

to allow web application located in /www served nginx utilize command chcon -r -t httpd_sys_content_t /www

but in case it's impossible have permissions shared /www directory samba.

to allow access samba's shared directory /www utilize command chcon -r -t samba_share_t /www

at time nginx service has no access files located in /www

i need access /www files develop web application , run nginx instantly. have no thought how create working same time having total access samba , nginx. please help, give thanks you!

in case nginx service won't able access files under /www cause have changed file context seek label /www recursively : chcon -r -t httpd_sys_content_t /www

then create soft link /www

'# ln -s /www /mysambashare

using semanage not relabel link itself; target:

'# semanage fcontext -a -t samba_share_t /mysambashare

nginx centos samba selinux

No comments:

Post a Comment