Soft link Hard link selinux my blog

Source: Internet
Author: User

Link
Soft Links: Pointing files, if the file source is deleted by soft links cannot enter the hard link opposite
The establishment of a soft link ln-s file name. link
The Ln-s file name of the hard link is established.

650) this.width=650; "title=" screenshot from 2017-11-05 09-47-24.png "src=" https://s3.51cto.com/oss/201711/08/ 56b92479d7f4365ee1fffe23b62be923.png-wh_500x0-wm_3-wmp_4-s_907780073.png "alt=" 56b92479d7f4365ee1fffe23b62be923.png-wh_ "/>

SELinux

1 Basic SELINUX Security Concepts

SELINUX (Security-enhanced Linux) is the amount of security that can protect your system
External mechanisms
In a way, it can be seen as a permission system that is parallel to the standard
Ec In normal mode, the process runs as a user, and the files on the system
and other resources are set, which controls which users have which files
Another difference in Access SELINUX is that to access files,
You must have a regular visit
Permissions and SELINUX access rights. Therefore, even with Superuser status
Root run process, based on process and SELinux security of files or resources
The sexual context may deny access to a file or resource limit) label


2SELINUX mode "Kernel firewall"

1 Enforcing mandatory mode "SELinux must be enforced even if it conflicts with records"
2 Permissive licensing Mode
3 Disabled off

Getenforce "See SELinux status"
Setenforce 0|1 "0 means permissive 1 means enforcing"


When the client accesses the host because SELinux is turned on, it is not possible to obtain the desired file by the following methods

1 Put the file under/var/www/html and also modify the label "http"

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-04-09.png "src=" https://s1.51cto.com/ Oss/201711/08/51e4a9a159fda6f9476d18acc9f47176.png-wh_500x0-wm_3-wmp_4-s_3652856459.png "alt=" 51e4a9a159fda6f9476d18acc9f47176.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-04-21.png "src=" https://s1.51cto.com/ Oss/201711/08/4ed0fbbad8fcc5954cd0438b16f33a06.png-wh_500x0-wm_3-wmp_4-s_1091305405.png "alt=" 4ed0fbbad8fcc5954cd0438b16f33a06.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-04-39.png "src=" https://s1.51cto.com/ Oss/201711/08/c6c8ee95ea71161a6b84dfb7f73389f4.png-wh_500x0-wm_3-wmp_4-s_2587382903.png "alt=" C6c8ee95ea71161a6b84dfb7f73389f4.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-04-54.png "src=" https://s3.51cto.com/ Oss/201711/08/c80f49fcc7760dc193cfa656b975804d.png-wh_500x0-wm_3-wmp_4-s_1426864372.png "alt=" C80f49fcc7760dc193cfa656b975804d.png-wh_ "/>

2 Put the file in the/var/ftp/file to modify its label "LFTP"

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-29-49.png "src=" https://s1.51cto.com/ Oss/201711/08/0f2277abecfc0c015f0ef3de6142b099.png-wh_500x0-wm_3-wmp_4-s_4204217888.png "alt=" 0f2277abecfc0c015f0ef3de6142b099.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-30-00.png "src=" https://s4.51cto.com/ Oss/201711/08/462a58ab8663708601f41e560098a7bd.png-wh_500x0-wm_3-wmp_4-s_543254554.png "alt=" 462a58ab8663708601f41e560098a7bd.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-30-21.png "src=" https://s3.51cto.com/ Oss/201711/08/81058d8fd5e6ed91cf0fbd1b688feed1.png-wh_500x0-wm_3-wmp_4-s_4116471519.png "alt=" 81058d8fd5e6ed91cf0fbd1b688feed1.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-30-31.png "src=" https://s3.51cto.com/ Oss/201711/08/8d99d9930776bc2d90f268cc5a22e178.png-wh_500x0-wm_3-wmp_4-s_1875736339.png "alt=" 8d99d9930776bc2d90f268cc5a22e178.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-30-38.png "src=" https://s3.51cto.com/ Oss/201711/08/00405134abdcff9d2a58ba454b5960f5.png-wh_500x0-wm_3-wmp_4-s_3451713649.png "alt=" 00405134abdcff9d2a58ba454b5960f5.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-30-46.png "src=" https://s3.51cto.com/ Oss/201711/08/24ea8ff92c7487653af7342e08a5b96b.png-wh_500x0-wm_3-wmp_4-s_4253985692.png "alt=" 24ea8ff92c7487653af7342e08a5b96b.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-31-42.png "src=" https://s4.51cto.com/ Oss/201711/08/d4b8acf547653e824ef7b1f447a47b65.png-wh_500x0-wm_3-wmp_4-s_1894489981.png "alt=" D4b8acf547653e824ef7b1f447a47b65.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-31-59.png "src=" https://s4.51cto.com/ Oss/201711/08/712e86d86d66f032587615d8b2b3768b.png-wh_500x0-wm_3-wmp_4-s_525049201.png "alt=" 712e86d86d66f032587615d8b2b3768b.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-49-38.png "src=" https://s4.51cto.com/ Oss/201711/08/4fb057cbd3eaef9cbf38e416a855ae44.png-wh_500x0-wm_3-wmp_4-s_3900076483.png "alt=" 4fb057cbd3eaef9cbf38e416a855ae44.png-wh_ "/>

3 Changing the security context can allow anonymous users to write

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-52-07.png "src=" https://s1.51cto.com/ Oss/201711/08/726163eb6c1be6758cd560185272740f.png-wh_500x0-wm_3-wmp_4-s_2275933656.png "alt=" 726163eb6c1be6758cd560185272740f.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-50-47.png "src=" https://s1.51cto.com/ Oss/201711/08/297d167efb88ea9a51bf56a99a7ad8eb.png-wh_500x0-wm_3-wmp_4-s_1639434948.png "alt=" 297d167efb88ea9a51bf56a99a7ad8eb.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 15-51-13.png "src=" https://s5.51cto.com/ Oss/201711/08/56d472622d222f93d58801fc132ff980.png-wh_500x0-wm_3-wmp_4-s_2296917448.png "alt=" 56d472622d222f93d58801fc132ff980.png-wh_ "/>


Build Your own Blog

650) this.width=650; "style=" Float:none; "title=" Img_0907.png "src=" https://s5.51cto.com/oss/201711/08/ Cb5e9dceba765d453908440edff35483.png-wh_500x0-wm_3-wmp_4-s_1833170348.png "alt=" Cb5e9dceba765d453908440edff35483.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" Img_0908.png "src=" https://s5.51cto.com/oss/201711/08/ 554dd976c91a37297ee87ddc9a245e02.png-wh_500x0-wm_3-wmp_4-s_1231130234.png "alt=" 554dd976c91a37297ee87ddc9a245e02.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" Img_0909.png "src=" https://s5.51cto.com/oss/201711/08/ B5a9fd570fe64fafa05fe5fee190575b.png-wh_500x0-wm_3-wmp_4-s_572324501.png "alt=" B5a9fd570fe64fafa05fe5fee190575b.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" Img_0910.png "src=" https://s3.51cto.com/oss/201711/08/ 27918d0432717989e46987d47096ed52.png-wh_500x0-wm_3-wmp_4-s_468168104.png "alt=" 27918d0432717989e46987d47096ed52.png-wh_ "/>

650) this.width=650; "title=" screenshot from 2017-11-05 17-13-58.png "src=" https://s2.51cto.com/oss/201711/08/ 7be3ec13bc45eae4ce39fd9c86c25d64.png-wh_500x0-wm_3-wmp_4-s_2852243811.png "alt=" 7be3ec13bc45eae4ce39fd9c86c25d64.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 17-10-44.png "src=" https://s3.51cto.com/ Oss/201711/08/0f09973b8e90c2a3a9a291a47242a683.png-wh_500x0-wm_3-wmp_4-s_3145921894.png "alt=" 0f09973b8e90c2a3a9a291a47242a683.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 17-10-59.png "src=" https://s2.51cto.com/ Oss/201711/08/6a57b2de7a71aee57320511bbb8932d1.png-wh_500x0-wm_3-wmp_4-s_2071520501.png "alt=" 6a57b2de7a71aee57320511bbb8932d1.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 17-11-33.png "src=" https://s2.51cto.com/ Oss/201711/08/b683c82f238110cb0a58fc1b81e410a3.png-wh_500x0-wm_3-wmp_4-s_3243331956.png "alt=" B683c82f238110cb0a58fc1b81e410a3.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 17-11-55.png "src=" https://s3.51cto.com/ Oss/201711/08/726ffed80e94c070f3b54febc71cd3ee.png-wh_500x0-wm_3-wmp_4-s_562675534.png "alt=" 726ffed80e94c070f3b54febc71cd3ee.png-wh_ "/>

650) this.width=650; "style=" Float:none; "title=" screenshot from 2017-11-05 17-12-07.png "src=" https://s3.51cto.com/ Oss/201711/08/1e025a7aad03e1089737b053857139be.png-wh_500x0-wm_3-wmp_4-s_544952153.png "alt=" 1e025a7aad03e1089737b053857139be.png-wh_ "/>


Soft link Hard link selinux my blog

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.