disabling /enabling daemon for selinux without root from command line

Roger Grosswiler roger at gwch.net
Wed Aug 3 12:19:00 UTC 2005


> On 8/3/05, Roger Grosswiler <roger at gwch.net> wrote:
>> > hey friends,
>> >
>> >  I have disable root access from all the terminals now I am not able
>> > to access "Security Level" from Security Tools with ordinary user .I
>> > want to disable/enable few daemons for SELinux policy.
>> >
>> > Can anybody tell me the command to enable/disable daemon for SELinux.
>> >
>> > Thanks & Regards
>> >
>> > Ankush Grover
>> >
>> > --
>> > fedora-list mailing list
>> > fedora-list at redhat.com
>> > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>> >
>> Ankush,
>>
>> Better set SE in permissive mode. In shell do: 'setenforce Permissive'
>>
>> do what you need, and then do 'setenforce Enforcing' again.
>>
>> HTH
>> Roger
>>
>
>
> If I am having problem only with mysql and I want to disable mysql
> selinux policy and after rectifying the problem how can I enable it.
>
> Thanks for the reply.
>
> Thanks & Regards
>
> Ankush Grover
>
doing 'getsebool -a | grep mysql' gives you 'mysqld_disable_trans -->
inactive'

do 'setsebool mysqld_disable_trans=1'

doing now again getsebool, you should see 'mysqld_disable_trans --> active'
try, if this works. if it doesnt try to relabel. i relabel using 'fixfiles
relabel'

HTH
Roger






More information about the fedora-list mailing list