sudo authconfig --passalgo sha512 --update
密碼編碼
變更系統密碼的編碼格式
GUI 介面
選單 >> 系統 >> 認證
system-config-authentication
Command Line 介面
authconfig
使用 openssl 提供的程式產生 des/md5 格式編碼
openssl passwd "123456“ ( des )
openssl passwd -1 "123456“ ( md5 )
sean 發表在 痞客邦 留言(0) 人氣(18)
4個放置帳號內容的檔案
/etc/passwd
owner:root, group:root, perm 644
使用者帳號檔案
/etc/group
owner:root, group:root, perm 644
群組帳號檔案
/etc/shadow
owner:root, group:root, perm 000 或 600
使用者密碼與期限控管的帳號檔案
/etc/gshadow
owner:root, group:root, perm 000 或 600
群組密碼帳號檔案
sean 發表在 痞客邦 留言(0) 人氣(16)
<%
Dim BrowserString
BrowserString = Request.ServerVariables("HTTP_USER_AGENT")
BrowserString = Lcase(BrowserString)
Dim broFirefox,broMSIE,broOpera,broWap
broFirefox = "firefox"
broMSIE = "msie"
broOpera = "opera"
broWap = "wap"
'如果是Firefox
if Instr(BrowserString, broFirefox) <> 0 then
Response.Redirect(broFirefox & ".asp")
end if
'如果是MSIE
if Instr(BrowserString, broMSIE) <> 0 then
Response.Redirect(broMSIE & ".asp")
end if
'如果是Opera
if Instr(BrowserString, broOpera) <> 0 then
Response.Redirect(broOpera & ".asp")
end if
'如果是Wap
if Instr(BrowserString, broWap) <> 0 then
Response.Redirect(broWap & ".asp")
end if
%>
sean 發表在 痞客邦 留言(0) 人氣(767)
離開 vi
ZZ :wq :x 先存檔再離開
:w 檔名 存成他檔
:q 離開 (檔案有改會提示)
:q! 放棄編輯,直接離開
:wq! 強制存檔,並離開
sean 發表在 痞客邦 留言(0) 人氣(28)
Linux 系統環境下,所有週邊裝置皆以檔案方式應對管理
所有裝置檔案皆放置於系統 /dev 目錄
應對週邊裝置的檔案稱呼為 "裝置檔案 (Device File)"
若開啟 /dev 內的檔案進行讀寫,便相當於對某個置進行溝通
裝置檔案分類
block device file
隨機存取讀寫裝置,一般為儲存媒介裝置
/dev/hda , /dev/sda ....
character device file
不可隨機存取讀寫裝置,一般為顯示輸入與輸出等設備裝置
/dev/lp0 , /dev/tty1 ...
sean 發表在 痞客邦 留言(0) 人氣(17)
[sean@station62 tmp]$ wget ftp://192.168.1.254/pub/firefox/firefox-14.0.1.tar.bz2
--2012-08-15 11:17:59-- ftp://192.168.1.254/pub/firefox/firefox-14.0.1.tar.bz2
=> `firefox-14.0.1.tar.bz2'
正在連接 192.168.1.254:21... 連上了。
以 anonymous 的身分登入... 登入完成!
==> SYST ... 完成。 ==> PWD ... 完成。
==> TYPE I ... 完成。 ==> CWD (1) /pub/firefox ... 完成。
==> SIZE firefox-14.0.1.tar.bz2 ... 20330681
==> PASV ... 完成。 ==> RETR firefox-14.0.1.tar.bz2 ... 完成。
長度: 20330681 (19M) (非正式資料)
100%[================================================>] 20,330,681 8.84M/s in 2.2s
2012-08-15 11:18:01 (8.84 MB/s) - `firefox-14.0.1.tar.bz2' saved [20330681]
[sean@station62 tmp]$ ls
firefox-14.0.1.tar.bz2
sean 發表在 痞客邦 留言(0) 人氣(49)
打包
tar -cvf backup.tar /bin
解開
tar -xvf backup.tar
sean 發表在 痞客邦 留言(0) 人氣(207)