Discussion:
[SLE] Error 21 cannot make changes 'modifiable' is off
Stan
2004-03-15 13:57:07 UTC
Permalink
I am logged in as root,

I want to use vi to edit a text file, but after I make my corrections,
I :w to write the changes
but I get the subject error.

I checked the permissions for the file using ls-l and added privileges
to all ( with a chmod, 777 )

I tried the vi again still get the error.

Any suggestion on what to do next ?

Stan




zzzzz
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-***@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-***@suse.com
sjb
2004-03-15 14:08:36 UTC
Permalink
Post by Stan
Any suggestion on what to do next ?
Esc
:set modifiable

Maybe?
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-***@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-***@suse.com
sjb
2004-03-15 14:08:47 UTC
Permalink
Post by Stan
Any suggestion on what to do next ?
Esc
:set modifiable

Maybe?
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-***@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-***@suse.com
G***@netscape.net
2004-03-16 20:40:48 UTC
Permalink
Post by Stan
I am logged in as root,
I want to use vi to edit a text file,
but after I make my corrections,
I :w to write the changes
but I get the subject error.
I checked the permissions for the file using ls-l
and added privileges to all ( with a chmod, 777 )
Error 21 cannot make changes 'modifiable' is off
Post by Stan
Any suggestion on what to do next ?
Stan
Stan,

check: vi --help,
(or vim --h, if you use Vi Improved).

when I exit I usually (after I do escape) use:

":wq <CR>" (without the quotes, if I do want to save the changes)

or

" :q <CR>" (without the quotes, if I don't want to save the changes)

My handy dandy vi References says you can also do:

" :w <filename> <CR>"

if you want to write to file <filename> without exiting from vi
but have I never used that command.

Don't know if vi supports it. but you might want to try.

Hope this helps,
Gar
--
In the Beginning was the Command Line
---Neal Stephenson
--
__________________________________________________________________
Introducing the New Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-***@suse.com
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-***@suse.com
Loading...