linux - 在没有 root 用户权限的情况下在 red-hat Linux 6 中编辑 iptables

标签 linux redhat

在没有 root 用户权限的情况下,在 red-hat Linux 6 中编辑 iptables 的可能方法是什么? 我们只能以 root 用户身份编辑或修改 iptables。 redhat linux 6 Enterprise下如何在没有root用户权限的情况下进行编辑操作。

最佳答案

以root身份登录并运行:

chmod u+s/path/to/iptables/command

你现在应该能够在没有 root 的情况下运行 iptables 命令。

请注意,这意味着所有 用户现在都可以以 root 身份运行 iptables 命令。

关于linux - 在没有 root 用户权限的情况下在 red-hat Linux 6 中编辑 iptables,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19762586/

相关文章:

linux - 将多行日志文件转换为 CSV

linux - linux中find和sed命令的错误?

ruby - Cronjob 不适用于 rake 命令

jakarta-ee - RedHat Enterprise 6 上是否有 Tomcat 7 的 rpm?

Linux 中的 JavaFX WebEngine 视频播放

python - 在提示符下仅键入 "python"时如何选择运行的 python 版本?

linux - 加拿大 Cross binutils To ARM

java - 如何从 S-RAMP 检索文档?

python - Unicode解码错误: 'ascii' codec can't decode byte 0xe7 in position 0: ordinal not in range(128)

ruby - 配置错误 LoadError : cannot load such file -- chef_handler_foreman (require statement in/etc/chef/client. rb)