日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

设置linux服务,Linux服务的seLinux设置

發布時間:2024/1/23 linux 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 设置linux服务,Linux服务的seLinux设置 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

下面是一些 收集來的 Linux服務的seLinux設置 命令

===ftp===//If you want to share files anonymously

chcon -R -t public_content_t /var/ftp

//If you want to setup a directory where you can upload files

chcon -t public_content_rw_t /var/ftp/incoming

You must also turn on the boolean allow_ftpd_anon_write

setsebool -P allow_ftpd_anon_write=1

//If you are setting up this machine as a ftpd server and wish to allow users to access their home directorories

setsebool -P ftp_home_dir 1

//If you want to run ftpd as a daemon

setsebool -P ftpd_is_daemon 1

//You can disable SELinux protection for the ftpd daemon

setsebool -P ftpd_disable_trans 1

===httpd===

//If you want a particular domain to write to the public_content_rw_t domain

setsebool -P allow_httpd_anon_write=1

or

setsebool -P allow_httpd_sys__anon_write=1

//httpd can be setup to allow cgi s to be executed

setsebool -P httpd_enable_cgi 1

//If you want to allow access to users home directories

setsebool -P httpd_enable_homedirs 1

chcon -R -t httpd_sys_content_t ~user/public_html

//httpd is allowed access to the controling terminal

setsebool -P httpd_tty_comm 1

//such that one httpd service can not interfere with another

setsebool -P httpd_unified 0

//loadable modules run under the same context as httpd

setsebool -P httpd_builtin_ing 0

//httpd s are allowed to connect out to the network

setsebool -P httpd_can_network_connect 1

// You can disable suexec transition

setsebool -P httpd_suexec_disable_trans 1

//You can disable SELinux protection for the httpd daemon by executing

setsebool -P httpd_disable_trans 1

service httpd restart

===named===

//If you want to have named update the master zone files

setsebool -P named_write_master_zones 1

//You can disable SELinux protection for the named daemon by executing

setsebool -P named_disable_trans 1

service named restart

===nfs===

//If you want to setup this machine to share nfs partitions read only

setsebool -P nfs_export_all_ro 1

//If you want to share files read/write

setsebool -P nfs_export_all_rw 1

//If you want to use a remote NFS server for the home directories on this machine

setsebool -P use_nfs_home_dirs 1

===samba===

//If you want to share files other than home directorie

chcon -t samba_share_t /directory 【LINUX公社 www.LinuxIDC.com 】

//If you want to share files with multiple domains

setsebool -P allow_smbd_anon_write=1

//If you are setting up this machine as a Samba server and wish to share the home directories

setsebool -P samba_enable_home_dirs 1

//If you want to use a remote Samba server for the home directories on this machine

setsebool -P use_samba_home_dirs 1

//You can disable SELinux protection for the samba daemon by executing

setsebool -P smbd_disable_trans 1

service smb restart

===rsync===

//If you want to share files using the rsync daemon

chcon -t public_content_t /directories

//If you want to share files with multiple domains

setsebool -P allow_rsync_anon_write=1

//You can disable SELinux protection for the rsync daemon by executing

setsebool -P rsync_disable_trans 1

===kerberos===

//allow your system to work properly in a Kerberos environment

setsebool -P allow_kerberos 1

//If you are running Kerberos daemons kadmind or krb5kdc

setsebool -P krb5kdc_disable_trans 1

service krb5kdc restart

setsebool -P kadmind_disable_trans 1

service kadmind restart

===nis===

Allow your system to work properly in a NIS environment

setsebool -P allow_ypbind 1

總結

以上是生活随笔為你收集整理的设置linux服务,Linux服务的seLinux设置的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 韩国成年人网站 | 亚洲专区中文字幕 | 91av视频在线播放 | 中文字幕自拍偷拍 | 久久噜噜噜精品国产亚洲综合 | 日日鲁鲁鲁夜夜爽爽狠狠视频97 | 91网址入口 | 亚洲视频图片 | 亚洲不卡网 | 亚洲国产欧美在线人成 | 国产日韩不卡 | 国产最新视频在线 | 在线观看黄色大片 | 欧美精品第1页 | 好吊色一区二区 | 国产精品高清无码在线观看 | 青青在线| 国产专区精品 | 国产精彩视频 | 午夜久久久久久久久久久 | 国产女优在线播放 | 国产毛片3 | 一色屋免费视频 | 精品色 | 国产精品亚洲精品 | av不卡在线看 | 免费福利在线观看 | 黄色免费在线看 | 天天射日日射 | 久久久久久av无码免费看大片 | 色香蕉av| 中文av一区 | 日日狠狠 | 女人18毛片水真多 | 精品在线观看一区 | 免费精品一区 | 精品视频在线观看一区二区 | www.555国产精品免费 | 日韩午夜视频在线观看 | 欧美黑人又粗又大的性格特点 | 黄免费在线观看 | 日本一区二区人妻 | 五十路在线观看 | 亚洲精品午夜 | 国产精品 色| 91久久精品日日躁夜夜躁国产 | 成人爽a毛片一区二区 | 午夜天堂影院 | 韩国伦理中文字幕 | ,国产精品国产三级国产 | 99热这里只有精品在线 | 狠狠操在线播放 | 制服丝袜av一区二区三区下载 | 超碰免费成人 | 国产美女网站 | 96精品在线 | 男人猛进女人爽的大叫 | 国产精品天堂 | avtt中文字幕 | 国产欧美精品在线观看 | 中文天堂资源在线 | 久久影音| 好吊妞精品 | 日韩一二三四区 | 麻豆精品一区二区三区 | 二区三区av | 成人av免费网站 | 成人做爰100 | 78日本xxxxxxxxx59 亚洲图片小说视频 | 精品在线你懂的 | 美女脱了裤子让男人捅 | 成人性生活免费看 | 国产精品国产三级国产Av车上的 | 国产成人无码精品久久久久久 | 国产a级大片 | 99热这里只有精品8 国产一卡二 | 91精品国产综合久久精品 | 久久久久久久久久影视 | 成人乱人乱一区二区三区 | 日日摸天天添天天添破 | 海角社区在线视频播放观看 | 在线视频这里只有精品 | av自拍偷拍| 久久久精品人妻一区二区三区 | 深爱激情丁香 | 欲涩漫入口免费网站 | www一区 | 可以免费看的毛片 | 91涩漫成人官网入口 | 熟女人妇 成熟妇女系列视频 | 国产乱叫456在线 | 97精品久久久 | 国产午夜精品理论片在线 | 国产三级国产精品国产国在线观看 | 最新国产三级 | 小视频在线看 | 草久在线观看视频 | 91福利在线免费观看 | 99久久婷婷国产综合精品青牛牛 |