在沒有root用戶權限的紅帽Linux 6中編輯iptables有哪些可能的方法? 我們只能以root用戶身份編輯或修改iptables。我們如何在redhat linux 6 Enterprise中沒有root權限的情況下執行編輯操作。在沒有root用戶權限的紅帽Linux 6中編輯iptables
0
A
回答
1
以root身份登錄,然後運行:
CHMOD U + S /路徑/到/ iptables的/命令
您現在應該能夠而不root身份運行iptables命令。
請注意,這意味着全部用戶現在可以以root身份運行iptables命令。
+0
好的,我怎麼能只允許setuid只屬於一個組的用戶 –
+0
我不知道這是否可以做到。 Setuid是一個標誌,告訴系統將文件作爲其所有者執行。您可能會從文件中刪除世界執行權限並設置iptables文件的組。 (chmod o-x/path/to/iptables,然後chown root:somegroup/path/to/iptables) –
相關問題
- 1. 在沒有root用戶權限的linux上安裝OpenCL
- 2. 沒有root權限的mysqlworkbench
- 3. 沒有root權限的Mysql
- 4. 紅帽企業Linux 6組播飼料
- 5. 在沒有root權限的Linux上安裝gcc
- 6. mysql root @ localhost沒有權限
- 7. Linux的紅帽企業Linux
- 8. 在沒有root權限的linux服務器上安裝Python2.7
- 9. 獲取在Linux上的硬盤序列沒有root權限
- 10. dnnEditState顯示在沒有編輯權限的用戶上
- 11. 文件權限,root bash腳本,用戶編輯
- 12. 在沒有root用戶權限的服務器上安裝Jinja2
- 13. Linux的紅帽內核頭
- 14. 在linux上安裝rlwrap - 沒有root權限
- 15. 誤差在Linux紅帽
- 16. PHP庫oci8.so沒有root權限
- 17. 沒有root權限的Linux原始輸入?
- 18. Linux的紅帽.bash_profile中不起作用
- 19. NMAP沒有root權限的EXEC()PHP
- 20. 安裝沒有root權限的pygobject
- 21. RVM不CentOS的沒有root權限
- 22. 安裝沒有root權限的zsh?
- 23. 以root權限在bash中創建/編輯文件
- 24. 有沒有辦法用emacsclient(用戶)打開文件,但有root權限?
- 25. 如何在沒有root權限的情況下在linux上安裝軟件
- 26. 用戶明智的時區可能在Linux紅帽子
- 27. 命令沒有找到,沒有root權限
- 28. 本地安裝pip(沒有root權限)
- 29. 擁有root(管理)權限的用戶列表用戶
- 30. 用戶在sudoers中沒有寫權限
我不認爲你可以。如果你可以獲得root權限,那麼你可以通過setuid iptables命令來使它成爲它,以便在被普通用戶調用時以root權限運行。 (不需要sudo或su) –
位在這裏的setuid信息:http://www.cyberciti.biz/faq/unix-bsd-linux-setuid-file/ –
你能解釋@james sefton的過程。我的意思是完整描述你的上述建議。 –