※ 引述《myCrystal ( )》之銘言:
: ※ 引述《psboy (屠牛特攻隊)》之銘言:
: : 你要不要先看看自己是用哪個使用者在幹嘛 @_@
: : 搞清楚/etc/profile的讀寫權限
: : 再看看能用甚麼方式解決?
: : -
: : 好啦
: : 其實一行sudo vim /etc/profile應該就能解決
: : 只是想說進vim時應該已經跟你警告過
: : 你正在編輯一個唯讀的檔案
: : 你沒看到嗎?
: 請問,為什麼這是一個read-only file
: 原本權限是
: -rw-r--r-- 1 root root 497 2008-04-23 01:49 /etc/profile
owner可讀寫 group可讀、others 可讀
: 我把它改成
: -rwxr--r-- 1 root root 497 2008-04-23 01:49 /etc/profile
owner 可讀寫、執行....其他跟上面一樣
: 可r 可w,為什麼還是一個read-only file ?
: 是什麼決定它是read-only file
/etc/profile的擁有者是root
所以你是用root 去編輯的嗎?
--
--
: ※ 引述《psboy (屠牛特攻隊)》之銘言:
: : 你要不要先看看自己是用哪個使用者在幹嘛 @_@
: : 搞清楚/etc/profile的讀寫權限
: : 再看看能用甚麼方式解決?
: : -
: : 好啦
: : 其實一行sudo vim /etc/profile應該就能解決
: : 只是想說進vim時應該已經跟你警告過
: : 你正在編輯一個唯讀的檔案
: : 你沒看到嗎?
: 請問,為什麼這是一個read-only file
: 原本權限是
: -rw-r--r-- 1 root root 497 2008-04-23 01:49 /etc/profile
owner可讀寫 group可讀、others 可讀
: 我把它改成
: -rwxr--r-- 1 root root 497 2008-04-23 01:49 /etc/profile
owner 可讀寫、執行....其他跟上面一樣
: 可r 可w,為什麼還是一個read-only file ?
: 是什麼決定它是read-only file
/etc/profile的擁有者是root
所以你是用root 去編輯的嗎?
--
--
All Comments