This page looks plain and unstyled because you're using a non-standard compliant browser. To see it in its best form, please visit upgrade to a browser that supports web standards. It's free and painless.

Spen 工作筆記 會員登入 會員註冊

環境:RoundCube 0.3 ,CentOS 5.4,Postfix (maildir) ,php 5.3 

-- 不使用 SQL 認證,蠻麻煩的..還要重新安裝 Postfix 以支援 mysql.. 放棄!

-- 改用較簡單設定的 Poppassd 方式. 

下載安裝 Poppassd  ****轉貼*** 來源網頁

1.  Download and install the Razor’s Edge Repository rpm package.# rpm -ivh xxx

2. Install poppassd using the command below.  # yum install poppassd

3. Enable the poppassd service. Learn how to enable services here. 預設為 xinetd 啟動,vi /etc/xinetd.d/poppassd  -> disable = no

4. Edit the file /etc/pam.d/poppassd and replace the content with the lines below.

auth     required /lib/security/pam_unix.so

account  required /lib/security/pam_unix.so

password required /lib/security/pam_cracklib.so #密碼複雜度檢查,可 #

password required /lib/security/pam_unix.so

5. In a Terminal window, type in the highlighted commands below.

Sample poppassd session. Replace johndoe, secret and p@ssw0rd with your own valid user account, old password and new password respectively.

[root@mail ~]# telnet localhost 106

Trying 127.0.0.1...

Connected to localhost.localdomain (127.0.0.1).

Escape character is '^]'.

200 poppassd v1.8.5 hello, who are you?

user johndoe

200 Your password please.

pass secret

200 Your new password please.

newpass p@ssw0rd

200 Password changed, thank-you.

quit

200 Bye.

***********************************************************************

 

2.cp /var/www/html/rcwebmail/plugins/password/config.inc.php.dist to config.inc.php

3.vi /../password/config.inc.php

$rcmail_config['password_driver'] = 'poppassd'; 

4.vi /var/www/html/rcwebmail/config/main.inc.php

//載入 password Plugin 

$rcmail_config['plugins'] = array('password'); 

5. /etc/init.d/xinetd restart 

6.登入 RoundCube 個人設定->密碼修改.  

 

 

架設一隻 vsftpd.使用 xinetd 啟動,使用本機測試 一切正常,但是其他連線(net or internet) 都要等很久才會出現 login 畫面,一開始使用 command ftp 雖然等很久,起碼還能連,一用 win ftp client 居然超過預設的20秒登入時間,直接 time out。
 
查了 firewall 、DNS反解 ,經過測試,都不是這問題。
 
後來在大陸網頁看到一篇 說明了問題 與解法。 轉貼如下
 
-------------------------------------------------------------- 
 
安裝最新的vsftpd tar包2.1.0後,standalone運行登錄5秒內就登錄成功,如果改成xinetd後就變成30秒左右。有什麼辦法嗎
 
cat /etc/xinetd.d/vsftpd 
# default: on
# description:
#   The vsftpd FTP server serves FTP connections. It uses
#   normal, unencrypted usernames and passwords for authentication.
# vsftpd is designed to be secure.
service ftp
{
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/local/sbin/vsftpd
#       server_args             =
        server_args             =/etc/vsftpd.conf
#       log_on_success          += DURATION USERID
       log_on_success          += DURATION USERID
#       log_on_failure          += USERID
        nice                    = 10
        disable                 = no
        port                    = 21
}
 
>>拿掉 xinetd 配置內 USERID 該參數後測試看看..... 
 
沒理由啊,真行了
整個登錄過程只用了5秒左右!

只是這是為什麼呢?知其然,更想知其所以然。謝謝!
 
>>
xinetd下面的
log_on_success          += DURATION USERID參數的含義要清楚,在『成功登入』之後,需要記錄的項目:PID為紀錄該 server 啟動時候的 process ID ,HOST 為遠端主機的 IP、USERID 為登入者的帳號、EXTI 為離開的時候記錄的項目、DURATION 為該使用者使用此服務多久
當然消耗時間 
 
>>
主要是使用 USERID 的參數問題

這個 server 會連到 client 的 port 113 進行 auth ident 查詢動作,詢問對方是那個 id 連到 server 的。

早期許多 unix 系統會開 auth ident daemon 提供連線查詢,不過目前 client 不一定都是 unix/linux 系統,甚至可能是 windows,所以更別說有執行 ident daemon 提供連結存取。而目前許多 client 都用 firewall 禁止連結存取,所以當然就會卡在連線的問題需要等 timeout 後才會放棄。

所以您的問題就是這樣來的....

有興趣建議研究一下 port 113 該 ident dameon 等用途。 
 
---------------------------------------------------------------------------------
 
正確的做法應該是
 
 cp /usr/share/doc/vsftpd-2.0.5/vsftpd.xinetd /etc/xinetd.d/vsftpd_x
 
vi /etc/xinetd.d/vsftpd_x
 
# default: off
# description: The vsftpd FTP server serves FTP connections. It uses \
#       normal, unencrypted usernames and passwords for authentication.
service ftp
{
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/vsftpd
        server_args             = /etc/vsftpd/vsftpd.conf
        nice                    = 10
        disable                 = no
        flags                   = IPv4
}


 
/etc/init.d/xinetd restart
 
 
 
 
 
 

Windows Server 2008 如何取消密碼必須符合複雜性?

  • 執行 gpedit.msc
  • 電腦設定 > Windows設定 > 安全性設定 > 帳戶原則 > 密碼原則
  • 將 "密碼必需符合複雜性需求" 設為 "停用" 即可!

 關閉【關機事件追蹤器】

gpedit.msc -> 電腦設定 -> 系統管理範本 -> 系統 -> 【顯示關機事件追蹤器】->停用

 

自動登入

control userpasswords2 

 

關閉小紅傘的廣告


一、打開【控制台】->【系統管理工具】->【本機安全性原則】

      (vista,Win7 --> secpol.msc)

二、選擇〔軟體限制原則〕,並按右鍵,選擇〔建立新原則〕

三、選擇〔其它原則〕,並按右鍵,選擇〔新增路徑規則〕(要建立兩個喔)。

四、按下 [瀏覽] 按鈕,路徑依序選擇 C:\Program Files\Avira\AntiVir Desktop 資料夾中的avnotify.dll、avnotify.exe 兩個檔案…並將安全性等級設為「不允許」,再按〔確定〕即可。
這個動作可以利用Windows的軟體規則禁止廣告跳出。

 

隱藏更新視窗

如果你想要讓更新的動作連視窗都不跳出來的話,可以在小紅傘的排程設定。

1.開啟小紅傘的視窗,打開排程。
2.在Daily Update上點右鍵選擇Edit。
3.一直下一步到Display mode選擇Invisible,按完成就好囉~
這個動作可以讓更新視窗隱藏~安安靜靜呢!!!!

轉貼
 
請問一下: 

    我想要設定,windows xp 的遠端登入,在系統那邊,的遠端有打勾。而從我的電腦上登入遠端的pc,有出現登入的畫面,但是輸入使用者帳號時(帳號:user ,密碼:是空白),出現使用者受限。

    請問是密碼空白的關系嗎?還是有什麼地方要調整的呢?

    謝謝。


*****************************************

解答
2006年11月7日 上午 04:42KaisersPower

 

這是[本機安全性原則]中的設定限制,預設定值:不接受使用空白密碼的本機帳號登入主控台是[已啟用]Enable!

可到[本機安全性原則]修改設定值:

[開始]-->[控制台]-->[系統管理工具]-->[本機安全性原則]-->[本機原則]-->[安全性選項]-->[帳戶:限制使用空白密碼的本機帳戶僅能登入到主控台]-->點選[已停用]

即可使用空白密碼登入,但安全性考量不建議這麼做!!

Sincerely~

Kaiser 

一台裝有 ASP 在 iis 上,win2000 server,經 true image 把image倒回去後,進入網頁經過asp user/password 認證後,居然又跳一次 認證視窗!這次卻要輸入 server 本機的 帳密!!

搞半天!

原因:應該是讀取或寫入到 不允許匿名 的目錄/檔案權限.

解法:把該asp web 目錄先壓縮(copy),然後原目錄更名(刪除),然後倒回來,ok!等於是把檔案目錄權限重新寫入了,阿這樣就正常了!

 

被搞死!

一台裝有 True image server 9 的機器,其中存有 image 檔。

今天一台 client server 的raid 1 硬碟 居然雙雙掛點。導致原有 raid 10 (2+2) 系統掛點。

(由於完全失去raid回復機制,需全新製作disk arr,這次換成 raid 5+hot space。)

當使用true image 光碟開機,無滑鼠、鍵盤->失敗。

使用noname xp 執行 true image home 9.網芳無法連接。失敗!

突然想起改在 server 掛 ftp server,讓 client 透過 ftp 來抓 image 檔。

然後!!true image 居然會挑 ftp server.!!

雷電ftp ok!

Home ftp server OK!

其他試過三四種 ftp server 都連不到!怪!

光這個就搞了兩三小時!度爛! 

 

印表機內建 或 連接至 小型Printer Server 後,其印表機具有IP。

winXp 增加(加入其印表機)方法 :

新增印表機時,需選用 「本機連接」,通訊阜選擇 Tcp/Ip ,然後再輸入其ip。

*****

很奇怪!明明是屬於「網路架構」下的印表機,設定時卻要先選用 「本機連接」然後又在選個邏輯不通的「Tcp/Ip 通訊阜」

,爛m$。 

 

Ghost 網域中的PC後,會有無法登入網域的情形。

解決方法:

1.ghost 後之pc, 本機登入(administrator)。登出網域(網域->工作群組),重開機,再加入網域。

以下未驗證: 

2. ghost 之 原始pc,於ghost前,先行更改登出網域(網域->工作群組)。再進行ghost。 

3.使用 NewSid.exe 程式,修改SID。

4.原始 pc-XP  ,先進行封裝步驟。

 

怪事..設定都沒變,就是 default gateway 變成 metric 100 的那個?!

怪事..

win2003 srv,

enth1 192.168.100.1 / 192.168.100.254 /手動設定 metric 100

enth2 192.168.1.1 / 192.168.1.254 / metric 1

幾天後:

route print

default gateway 變成 192.168.100.254.

怪事..設定都沒變,就是 default gateway 變成 metric 100 的那個?!

原因:待查.

2009/10/13 可能原因:原先 metric 1 的連線中斷,系統改設 default gateway 為 metric 100 連線,雖然後來 metric 1 恢復連線,但是 系統並未更改 default gateway 回來。