歡迎您光臨本站 註冊首頁

在CentOS5.1下安裝SquirrelMail出現」(13 : Permission denied)」

←手機掃碼閱讀     火星人 @ 2014-03-25 , reply:0

百思不得其解,實在我的IMAP工作是正常的,而且我用thunderbird也可以連接上

監看/var/log/maillog時發現,squirrelmail在登陸時,log並不記錄

臨看/var/log/message時,發現這個時候寫入了這麼一條記錄

kernel: audit(1208928634.263:213): avc: denied { name_connect } for pid=12046 comm="httpd" dest=143 scontext=root:system_r:httpd_t:s0 tcontext=system_u:object_r:pop_port_t:s0 tclass=tcp_socket

可見這個登陸信息並沒有提交到IMAP。

於是squirrelmail 13 Permission denied

找到這麼一解決方法:

原來是要輸入這麼一條命令:
setsebool -P httpd_can_network_connect=1

原來又是SELinux的許可權問題,現在的SELinux異常強大啊,以後,沒事還是學學SELinux。

另外,還是一句老話,建議所有的新手在學習還是禁用iptables與SELinux,減少一個故障點。不過,好像chkconfig iptables off 這個命令在CentOS或者RHEL 5.1裡面都不生效了,每次我都要把iptables remove才會有效果。

[火星人 ] 在CentOS5.1下安裝SquirrelMail出現」(13 : Permission denied)」已經有564次圍觀

http://coctec.com/docs/linux/show-post-166269.html