LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   editing read-only files in single user mode (https://www.linuxquestions.org/questions/linux-newbie-8/editing-read-only-files-in-single-user-mode-55059/)

cmiwebmaster 04-14-2003 06:46 PM

editing read-only files in single user mode
 
How do you make a file read/write in single user mode? I'm logged in as su and I'm trying to comment out a line in rc.config using vi and it keeps telling me rc.config is read only.

help!

SUSE 7.0 ent running email server 3

will not load postfix service

zovres 04-14-2003 06:53 PM

under root
do a chmod to change the permission on the file
chmod a+w (a[all users] +[are added] w[the permission to write])

or you can chown user_name:user_name the file to user_name so that the file will belong to user_name and user_name will be able to write in it

zovres 04-14-2003 06:54 PM

I strongly suggest a
man chmod
and a
man chown =)

cmiwebmaster 04-14-2003 07:15 PM

re chmod
 
I tried chmod a+w rc.config and the screen says "Changing permissions of 'rc.config': read-only file system

It still wont write to the file.

HELP!


All times are GMT -5. The time now is 05:06 AM.