Results 1 to 3 of 3
Hi all
I know its a very silly question to ask
I have my file "abc" with only read permission
ls -lrt abc
-r--r--r-- 1 userA users 140 Dec 28 ...
- 12-29-2010 #1Just Joined!
- Join Date
- Dec 2010
- Location
- India
- Posts
- 45
permission problem..
Hi all
I know its a very silly question to ask
I have my file "abc" with only read permission
but now when i am writing in that file using vi editorls -lrt abc
-r--r--r-- 1 userA users 140 Dec 28 17:09 abc
i do changes in the file and when i am going to save that file its asking me to use !
now when i use :wq! in vi editor that file gets modifiedvi abc
file contents changed
E45: 'readonly' option is set (add ! to override)
but its having only read permission not write how that file contents is being changed
i want the file to be read only and no one can change the file content
- 12-29-2010 #2
You're right, logically it shouldn't do this. But this thread shows that it is possible to set up vim so that it does (and also how to stop it).
"I'm just a little old lady; don't try to dazzle me with jargon!"
- 12-30-2010 #3Just Joined!
- Join Date
- Dec 2010
- Location
- India
- Posts
- 45
thanks hazel
its a great help


Reply With Quote