02.01.2016 Views

Linux

linux_admin_text-1.0.0_2

linux_admin_text-1.0.0_2

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4 <br />

ls -lZ <br />

Apache Web httpd<br />

# ls -lZ /var/www<br />

drwxr-xr-x. root root system_u:object_r:httpd_sys_script_exec_t:s0 cgi-bin<br />

drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 error<br />

drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 html<br />

drwxr-xr-x. root root system_u:object_r:httpd_sys_content_t:s0 icons<br />

/var/www/html /var/www/icons Web <br />

httpd_sys_content_t<br />

/var/www/html <br />

<br />

/var/www/html index.html <br />

index.html httpd_sys_content_t<br />

<br />

# touch /var/www/html/index.html<br />

# ls -lZ /var/www/html/index.html<br />

-rw-r--r--. root root unconfined_u:object_r:httpd_sys_content_t:s0 /var/www/h<br />

tml/index.html<br />

ps axZ <br />

httpd httpd_t <br />

<br />

[root@server ~]# service httpd start<br />

httpd : [ OK ]<br />

[root@server ~]# ps axZ | grep httpd<br />

unconfined_u:system_r:httpd_t:s0 27104 ? Ss 0:00 /usr/sbin/httpd<br />

unconfined_u:system_r:httpd_t:s0 27106 ? S 0:00 /usr/sbin/httpd<br />

<br />

SE<strong>Linux</strong> httpd httpd_t <br />

httpd_sys_content_t read<br />

<br />

www.lpi.or.jp 121 (C) LPI-Japan

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!