在没有 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/