2009年8月31日 星期一

修復Ubuntu下Firefox flash無法顯示中文問題

1. 修改/etc/fonts/conf.d/69-language-selector-zh-tw.conf
2. 搜尋"sans-serif"字樣, 並刪掉隨後一行中binding="strong"字樣

2009年8月27日 星期四

VSFTPD local account expiry management

chage -E 2012-12-31 ACCOUNT_NAME #set account expire at 2012/12/31, account actually get deny login at 2013/1/1
chage -l ACCOUNT_NAME #display account expiry information

echo $(($(date --date="2012/12/31" +%s)/86400+1)) #caculate number of days since January 1st, 1970, number is: 15705
so we grep ACCOUNT_NAME from /etc/shadow and found:
ACCOUNT:DFdgfdfg3345dg#$%:14466:0:99999:7::15705:

#以上對設定vsftpd local account expiration無效
#1. 試用user_config_dir, 透過crontab設定某user於特定時間更換user conf, 看是設成read only或是local_max_rate=1
#2. 或是crontab時間到就echo "ACCOUNT_NAME">>userlist_file...