回答:
/etc/profile
読み取り専用です。
あなたはそれを書き込み可能にすることができます
$ sudo chmod +w /etc/profile
以上の場合はvi
、読み取り専用ファイルをEsc-wq!
Esc-wq!
素晴らしいヒントです。ありがとう!
実行ls -l
すると/etc/profile
、所有者でさえ書き込み権限がないことがわかります。
$ ls -la /etc/profile
-r--r--r-- 1 root wheel 189 May 4 2009 /etc/profile
オーナーに次のように編集させることができます。
sudo chmod u+w /etc/profile
次に、それをとして編集できるはずですroot
。
ls -l /etc/profile
言うの?-r--r--r--
?