Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the setsebool command of Linux

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of "how to use the setsebool command of Linux". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to use the setsebool command of Linux" can help you solve the problem.

The Linux common command setsebool command is used to modify the Boolean values of the rules within the SElinux policy.

Syntax format setsebool [parameters]

Common parameter:-P writes the setting value directly to the configuration file, and the setting data will take effect in the future

The reference instance allows vsvtp anonymous users to write permissions:

[root@linux265 ~] # setsebool-P allow_ftpd_anon_write=1HTTP is set to allow the setting of cgi:

[root@linux265 ~] # setsebool-P httpd_enable_cgi 1Selinux sets the local NFS share to read-only:

[root@linux265] # setsebool-P nfs_export_all_ro 1 on "how to use the setsebool command of Linux" is introduced here. Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report