Re: [CentOS] SELinux - different context on subdirectories

2009-03-19 Thread Ned Slider
Marcus Moeller wrote: > Dear Ned. > >> You may also need to manually change the context first: >> >> chcon -v --type=samba_share_t /srv/samba > > chcon did the trick. > > Thanks a lot > Marcus semanage will make the changes persistent through a complete filesystem relabel (chcon will persist t

Re: [CentOS] SELinux - different context on subdirectories

2009-03-19 Thread Marcus Moeller
Dear Ned. > > You may also need to manually change the context first: > > chcon -v --type=samba_share_t /srv/samba chcon did the trick. Thanks a lot Marcus ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] SELinux - different context on subdirectories

2009-03-19 Thread Ned Slider
Ned Slider wrote: > Marcus Moeller wrote: >> 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 fcontex

Re: [CentOS] SELinux - different context on subdirectories

2009-03-19 Thread Ned Slider
Marcus Moeller wrote: > 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