← 返回命令列表

Linux command

togglesebool 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Toggle

sudo togglesebool virt_use_samba

Example

sudo togglesebool httpd_enable_homedirs ftpd_full_access

说明

togglesebool flips the current (non-persistent) values of SELinux booleans. If a boolean is currently on, it will be turned off, and vice versa. Changes do not persist across reboots.

参数

boolean
One or more SELinux boolean names to toggle

FAQ

What is the togglesebool command used for?

togglesebool flips the current (non-persistent) values of SELinux booleans. If a boolean is currently on, it will be turned off, and vice versa. Changes do not persist across reboots.

How do I run a basic togglesebool example?

Run `sudo togglesebool virt_use_samba` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does boolean do in togglesebool?

One or more SELinux boolean names to toggle