回文章列表
作者demintree.bbs@ptt.cc (Mirabelli's back in tow) 看板: linux
標題Re: [問題] Can't open file for writing
時間批踢踢實業 (2008/05/26 Mon 14:49:52)
※ 引述《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 去編輯的嗎?

--

--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.114.85.90
※ 編輯: demintree       來自: 140.114.85.90        (05/26 14:49)
文章選讀←離開[主題上]主題下(k)上篇(j)下篇S/a搜尋 G串列 TAB精華 ↑↓捲 Pg/Space翻