Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-14-2003, 06:46 PM   #1
LQ Newbie
Registered: Apr 2003
Posts: 4

Rep: Reputation: 0
Question 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.


SUSE 7.0 ent running email server 3

will not load postfix service
Old 04-14-2003, 06:53 PM   #2
Registered: Sep 2002
Posts: 184

Rep: Reputation: 30
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
Old 04-14-2003, 06:54 PM   #3
Registered: Sep 2002
Posts: 184

Rep: Reputation: 30
I strongly suggest a
man chmod
and a
man chown =)
Old 04-14-2003, 07:15 PM   #4
LQ Newbie
Registered: Apr 2003
Posts: 4

Original Poster
Rep: Reputation: 0
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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with editing rc.conf in single user mode Fredstar *BSD 1 07-17-2005 12:26 AM
single user mode... navaladi Mandriva 2 12-26-2004 02:41 AM
single user mode ? wr3ck3d Slackware 5 03-29-2003 09:52 AM
HELP!! Problem editing the shadow file in Single user mode natso Linux - Security 2 05-28-2002 03:22 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 12:17 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration