PDA

View Full Version : Trying to edit file onn hdd.



CyberInzane
02-21-2004, 02:11 PM
My problem startet with my RedHat 9 server, i edited the file "/etc/rc.local".

Then the server began doing some strange things and after some time i did not gett accses to the server any more. So what i need to do is edit this file inn Knoppix. But when i edit "rc.local" inn vim i get this message when i try to save the file "E45: 'readonly' optin is set <use ! to override>", i tried to to chmod 755 the file too, then i get this "chmod: changing premissions of `rc.local': Read-only file system".


So can anyone pleease tell me what to do ?
Or why i cant edit this file inn Knoppix ?

fingers99
02-21-2004, 05:35 PM
Why are you trying to edit /etc/rc.local?

Who are you trying to edit it as?

Stephen
02-21-2004, 11:41 PM
My problem startet with my RedHat 9 server, i edited the file "/etc/rc.local".

Then the server began doing some strange things and after some time i did not gett accses to the server any more. So what i need to do is edit this file inn Knoppix. But when i edit "rc.local" inn vim i get this message when i try to save the file "E45: 'readonly' optin is set <use ! to override>", i tried to to chmod 755 the file too, then i get this "chmod: changing premissions of `rc.local': Read-only file system".


So can anyone pleease tell me what to do ?
Or why i cant edit this file inn Knoppix ?

Are you using sudo in front of the command to edit the file as super user (root)?

zenkoanlife
02-23-2004, 09:33 PM
Is the problem that the partition and/or folder holding this file is protected?

not the most secure solution but you could do a
chmod -R to the whole partition.