Can't open file for writing - Linux

By Ethan
at 2008-05-26T14:45
at 2008-05-26T14:45
Table of Contents
※ 引述《psboy (屠牛特攻隊)》之銘言:
: ※ 引述《myCrystal ( )》之銘言:
: : Ubuntu
: : 用vim /etc/profile
: : 這個檔案權限是
: : -rwxr--r-- 1 root root 497 2008-04-23 01:49 /etc/profile
: : 請問一下,為什麼在vim :w!
: : 會有erroe msg : Can't open file for writing
: : 自己是用install 時候的account login。
: : 請問是什麼問題? thanks
: 你要不要先看看自己是用哪個使用者在幹嘛 @_@
: 搞清楚/etc/profile的讀寫權限
: 再看看能用甚麼方式解決?
: -
: 好啦
: 其實一行sudo vim /etc/profile應該就能解決
: 只是想說進vim時應該已經跟你警告過
: 你正在編輯一個唯讀的檔案
: 你沒看到嗎?
請問,為什麼這是一個read-only file
原本權限是
-rw-r--r-- 1 root root 497 2008-04-23 01:49 /etc/profile
我把它改成
-rwxr--r-- 1 root root 497 2008-04-23 01:49 /etc/profile
可r 可w,為什麼還是一個read-only file ?
是什麼決定它是read-only file
--
Tags:
Linux
All Comments

By Valerie
at 2008-05-28T09:55
at 2008-05-28T09:55
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