On 21-Jan-01 Patrick Lacchia opined:
> 
> Yes I tried and it doesn't work. Here is what happen
> 
> 1) I type "vi rc.sysinit"
> 2) The file open and the bottom line says "rc.sysinit [readonly]
> 3) I jump to the lines I want to delete and do a "dd" on the first one
> 4) The bottom line becomes red and says "warning: changing a readonly
> file"
> 5) immediatly after a message pops up saying "Unable to open swap file
> for 
> "rc.sysinit", recovery impossible
> 6) follows by a new message "Press RETURN or enter command to continue"
> 7) I press RETURN and go back to the lines
> 8) I can now "dd" the 3 lines
> 9) but when I try to "wq!" I get a message saying "rc.sysinit Can't
> open 
> file for writing" and then "Press RETURN or enter command to continue"
> 
> Nothing was saved. I can't understand why it was so easy to modify a
> sys 
> file in the first place with a text pad and now it's impossible to
> modify it 
> again. Looks like all the files are read-only. I am wondering if it's
> due to 
> the linux emergency mode.

The power of linux/unix. It allows you to do anything you want to the
system as superuser, even if it isn't too wise an action. That's the
prime reason one shouldn't stay logged-in as root all of time and chance
compromising the system or accidentally issuing unwise commands.

Such as the one I did early on: chmod -R o-x /

As for being read-only and unable to modify easily, can't really give a
definitive answer to the. I presume (wrongly, most likely) that it's 
to keep one from doing even more damage inadvertantly by requiring some
forethought to be applied before acting.

-- 
This is my brain... This is... WAIT! WHERE'S MY BRAIN?



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to