PIXNET Logo登入

Hello World

跳到主文

:D

部落格全站分類:生活綜合

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 5月 10 週二 201117:29
  • ldap帳號登入後自動建立家目錄

測試平台: ubuntu server 10.10
# vi /etc/pam.d/proftpd
session  required  pam_mkhomedir.so umask=0022 skel=/etc/skel
(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(212)

  • 個人分類:系統管理
▲top
  • 4月 19 週二 201117:46
  • How to update FreeBSD ports tree

1st time => portsnap fetch extract
2nd and later => portsnap fetch update
(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(46)

  • 個人分類:系統管理
▲top
  • 4月 15 週五 201113:51
  • 利用awk計算檔案大小

如果我要計算目錄下面 某個副檔名或是某關鍵字檔名的大小加總的話
可以使用awk 來實現
例如
ls -l /var/log/maillog* | awk '{ SUM += $5 } END { print SUM/1024/1024 }'
計算出來的單位是MB
undefined
Sed and Awk: Pocket Reference

作者: Robbins, Arnold
原文出版社:Oreilly & Associates Inc
出版日期:2002/06/01
語言:英文
定價:348元
(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(1,390)

  • 個人分類:系統管理
▲top
  • 4月 13 週三 201112:13
  • ACL實現LDAP account disable/enable

如果不想刪除帳號或是要讓ldap 某個account暫時停用的話
似乎沒有直接的屬性可以使用,想到最單純的方法可能是用ACL來實現了
首先編輯slapd.conf 多加一行include /usr/local/etc/openldap/acl_disabled.conf
vi /usr/local/etc/openldap/slapd.conf
include         /usr/local/etc/openldap/acl_disabled.conf
access to *
      by * read
access to attrs=userPassword
      by self write
      by * auth
未來如果有要暫時disable一個帳號的話只需要維護acl_disabled.conf
vi /usr/local/etc/openldap/acl_disabled.conf
access to dn="uid=peter,ou=sales,dc=helloworld,dc=com,dc=xx"
  by * none
access to dn="uid=mary,ou=tech,dc=helloworld,dc=com,dc=xx"
  by * none
比較麻煩的是..每次編輯完記得重新啟動ldap server才會生效,反正帳號不會常異動啦XDDD
另外就是不適用有replication的環境啊orz
(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(357)

  • 個人分類:系統管理
▲top
  • 4月 08 週五 201116:21
  • 清空郵件駐列

postsuper -d ALL
(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(6)

  • 個人分類:系統管理
▲top
  • 4月 07 週四 201119:01
  • 讓ldap提供ssl連線

cd /etc/openldap/ssl
openssl genrsa -out ldap.test.com.key 1024
openssl req -new -key ldap.test.com.key -out ldap.test.com.csr
openssl x509 -req -days 7200 -in ldap.test.com.csr -signkey ldap.test.com.key -out ldap.test.com.crt
vi /etc/openldap/slapd.conf
TLSCipherSuite HIGH::MEDIUM:LOW
TLSCertificateFile /etc/openldap/ssl/ldap.test.com.crt
TLSCertificateKeyFile /etc/openldap/ssl/ldap.test.com.key
/etc/init.d/ldap restart
cat /etc/services | grep ldap
ldap            389/tcp
ldap            389/udp
ldaps           636/tcp                         # LDAP over SSL
ldaps           636/udp                         # LDAP over SSL
檢查一下有沒有LISTEN兩個port
netstat -na | grep LISTEN
tcp        0      0 0.0.0.0:389                 0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:636                 0.0.0.0:*                   LISTEN
(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(396)

  • 個人分類:系統管理
▲top
  • 3月 29 週二 201116:42
  • FreeBSD 升級 openssh

升級前
telnet 0 22
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.4p1 FreeBSD-20100308
步驟:抓source回來解開
./configure && make && make install
(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(134)

  • 個人分類:系統管理
▲top
  • 10月 06 週二 200911:43
  • Cisco ASA 5510/5540 設定ssh連線

undefined
1.首先建立user
ASA(config)# username cisco password cisco
2.產生key
ASA(config)# crypto key generate rsa modulus (512/768/1024/2048)
3.允許ssh的interface
ASA(config)# ssh a.b.c.d 255.255.255.0 management
4.ssh的timeout時間
ASA(config)# ssh timeout 5
5.如果出現Permission denied, please try again.請注意下面的設定有沒有加上去
ASA(config)# aaa authentication ssh console LOCAL
CCNA Routing and Switching 認證教戰手冊 第二版
作者: Todd Lammle  
譯者: 林慶德, 陳宇芬
出版社:旗標  
出版日期:2017/04/28
語言:繁體中文
定價:1180元
(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(3,383)

  • 個人分類:系統管理
▲top
  • 9月 28 週一 200918:53
  • 如何重置 cisco router enable password

如果忘記或是已經遺失 cisco router 的 enable password 
可依照下列步驟重設密碼
本測試環境為 cisco router 1700
資料來源 : http://www.cisco.com/en/US/products/hw/routers/ps221/products_password_recovery09186a0080094773.shtml
1. router重開機
2. 在60秒內按下break鍵
3. 在 rommon 1> 的提示符號下輸入 confreg 0x2142
4. 在 rommon 2> 的提示符號下輸入 reset, 這時候 router 會重開機
5. 出現任何選項都按no 或是 ctrl+C 中斷這個對話過程
6. 在router> 的提示符號下輸入 enable
7. 輸入 configure memory 或 copy startup-config running-config 將nvram的資料複製一份到記憶體,切記不要輸入 copy running-config startup-config 或 write ,否則會蓋過你的設定檔
8. show running-config看看你的設定檔
9. 設定密碼, conf t ==> enable secret XXXX
10. hostname(config)#config-register 0x2102
11. end 或 ctrl+z 結束設定狀態
12. 輸入 write memory 或 copy running-config startup-config 儲存設定檔
13. 重開機試試看:p
 
(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(2,072)

  • 個人分類:系統管理
▲top
  • 12月 31 週三 200812:23
  • 查看目前NetApp的效能

sysstat -x 1
(繼續閱讀...)
文章標籤

helloworld 發表在 痞客邦 留言(0) 人氣(239)

  • 個人分類:系統管理
▲top
«1...434445»

momo shop

近期文章

  • windows 11 pro 安裝 RSAT 工具
  • 略過windows 11 安裝檢查
  • Debina Linux 同步時間
  • 阻擋偽造老闆名字發的詐騙信
  • 解決連線網路印表機錯誤 0x00000709
  • 解決HP筆記型電腦無法從win10升級至win11問題
  • windows 11 找不到列印至PDF 印表機
  • 無線網路的網卡mac address 會變耶
  • 解決 umount 出現 target is busy.
  • 解決rsync 同步錯誤訊息

誰來我家

我的地盤

helloworld
暱稱:
helloworld
分類:
生活綜合
好友:
累積中
地區:

最新迴響

  • [25/07/31] steven 於文章「解決點兩下 excel 檔案無法直接開啟...」留言:
    太讚了,這真的解決許久的困擾,比看什麼微軟方案還有用又簡單...
  • [25/06/05] helloworld 於文章「無線網路的網卡mac address 會...」留言:
    MacOS 也有類似的設定 選項分別為關閉、固定、輪替...
  • [24/10/25] wing 於文章「HP DL380 gen10 安裝 wi...」留言:
    我的svr是HP 380G10,安裝2016時找不到硬碟,到...
  • [24/07/23] helloworld 於文章「馬來西亞遊記...」留言:
    補充: 1. 馬來西亞雖然位於赤道上,但沒有想像中的熱 ...
  • [23/08/24] JeJe4咖照 於文章「建立新的 zfs filesystem...」留言:
    謝謝Hello World分享精彩的資訊 & 體驗心得,很詳...
  • [23/07/07] 路人 於文章「windows / mac 遠端連線到 ...」留言:
    好用,謝謝...
  • [22/05/22] 小黃瓜 於文章「台式涼拌小黃瓜DIY...」留言:
    好吃的小黃瓜 https://shopee.tw/prod...
  • [22/04/28] helloworld 於文章「修正iphone 更新 iOS 15.4...」留言:
    另外就是傳簡訊實名制到1922的時候 變得非常難用 幸好...
  • [21/08/03] cuteClover 於文章「momo 購物網聯絡客服網址...」留言:
    超難找,感謝你的筆記...
  • [20/06/22] LINUX VPS VPN  於文章「使用pfsense 架設 site to...」留言:
    需要付費的再找我,主要是系統架站。直播拍賣應用提供完整服務...

文章分類

  • 遊記 (24)
  • 系統管理 (441)
  • 吃吃吃 (29)
  • 工商服務 (95)
  • 資料庫 (45)
  • 未分類文章 (1)

參觀人氣

  • 本日人氣:
  • 累積人氣:

pixGoogleAdsense1

pixGoogleAdsense2

留言板