mail 流量分析軟體 #cd /usr/ports/mail/mailgraph #chmod 644 /var/log/maillog 啟動mailgraph #vim /etc/rc.conf mailgraph_enable="YES" #/usr/local/etc/rc.d/mailgraph.ph start 在httpd.conf ScriptAlias /cgi-bin/ "/usr/local/www/cgi-bin/" <Directory "/usr/local/www/cgi-bin/"> Options ExecCGI AllowOverride None Order allow,deny Allow from all </Directory> 然後就去網頁看你mail 的流量吧~ #因為在/etc/newsyslog.conf 每天會把檔案給renew 所以我們把maillog改成644 過一天後他就會變成640了 所以連newsyslog.conf也要改成644
posted in FreeBSD by johnpupu
Samba 中建檔的權限基礎 File and Directory Permissions-Based Controls Directory permission-based controls, if misused, can result in considerable difficulty in diagnosing the causes of misconfiguration. Use them sparingly and carefully. By gradually introducing each, one at a time, undesirable side effects may be detected. In the event of a problem, always comment all of them out and [...]
posted in 轉貼 by johnpupu
SSH login without password Your aim You want to use Linux and OpenSSH to automize your tasks. Therefore you need an automatic login from host A / user b to Host B / user b. You don't want to enter any passwords, because you want to call ssh from a within a shell script. How [...]
posted in 轉貼 by johnpupu
松鼠郵件下載檔案亂碼問題 因為在ie下用squirrel mail 收附加檔案
posted in FreeBSD by johnpupu
兩套perl在freebsd上~有極大的機會系統會crash 用ftp裝了kern develop distribution的話,都會自動裝上per5.6的版本 而我們在裝很多軟体的時後都是須要perl5.8以上的版本,主要是須要5.8的multistring 所以ports都會自動裝上5.8的版本,這時後問題就來了 因為系統原本就有5.6的版本,然後又裝上5.8的版本, 這時後很多用到perl的程式在執行或是compile的時後很容易出現問題 so 最好的方式是在裝好os 後馬上裝cvsup-without-gui 更新ports後 把舊版的移掉然後裝上新版的 這樣對系統應該是一個比較正確的方式。
posted in FreeBSD by johnpupu