[CentOS] SELinux - different context on subdirectories

Ned Slider ned at unixmail.co.uk
Thu Mar 19 14:48:02 UTC 2009


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 through a reboot, but not a relabel).

Cheers,

Ned





More information about the CentOS mailing list