Can't open file for writing - Linux

By Todd Johnson
at 2008-05-26T14:49
at 2008-05-26T14:49
Table of Contents
※ 引述《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 去編輯的嗎?
--
--
Tags:
Linux
All Comments

By Una
at 2008-05-30T12:23
at 2008-05-30T12:23

By Edward Lewis
at 2008-05-31T09:20
at 2008-05-31T09:20

By Liam
at 2008-06-05T08:40
at 2008-06-05T08:40
Related Posts
Can't open file for writing

By Regina
at 2008-05-26T14:32
at 2008-05-26T14:32
Can't open file for writing

By Quanna
at 2008-05-26T14:24
at 2008-05-26T14:24
挑戰Solaris下寫程式

By James
at 2008-05-26T11:01
at 2008-05-26T11:01
請問有關 OpenWebMail 的附檔傳輸限制

By Hamiltion
at 2008-05-26T10:49
at 2008-05-26T10:49
請問為何大多數的板友用Ubuntu?

By Dora
at 2008-05-26T10:26
at 2008-05-26T10:26