Search This Blog

Sunday, July 31, 2011

Use boolean settings to modify system SELinux settings

To find boolean selinux of a service
# getsebool -a | grep servicename
eg:
# getsebool -a | grep http

Change boolean
#setsebool -P [boolean = ]
eg:
# setsebool -P httpd_enable_homedirs=1

2 comments:

Anonymous said...

1(on), 0(off)

#setsebool -P httpd_enable_homedirs=1
or
#setsebool -P httpd_enable_homedirs 1

or

#setsebool -P httpd_enable_homedirs=0
or
#setsebool -P httpd_enable_homedirs 0

or

#setsebool -P httpd_enable_homedirs=on
or
#setsebool -P httpd_enable_homedirs on

or

#setsebool -P httpd_enable_homedirs=off
or
#setsebool -P httpd_enable_homedirs off



~ Varjang Zala (India)

Amazing Quotes said...

very amazing and interesting post, thank you for sharing
Great Quotes
Positive Life Quotes
Fitness Quotes - Best Quotes
Future Quotes - Success Quotes
Image Bank - Smile Quotes - Xyore
اقوال وحكم