selinux command with share home directory on web/httpd

while I mostly create repo in my home directory, and each time I forgot how to use selinux in home directory.  Following two command need to run on system (fedora based) to enable home directory to share on Web/http.

[root@localhost os]# setsebool -P httpd_enable_homedirs=1

following command make Directory content as same as /var/www/html/ so that browser can use this.

[root@localhost os]# chcon -R -t httpd_sys_content_t /home/<DIR>

command are quite easy (if not forgot) then Graphical Interface.

Advertisements

One thought on “selinux command with share home directory on web/httpd

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s