LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-14-2003, 07:46 PM   #1
cmiwebmaster
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.

help!

SUSE 7.0 ent running email server 3

will not load postfix service
 
Old 04-14-2003, 07:53 PM   #2
zovres
Member
 
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, 07:54 PM   #3
zovres
Member
 
Registered: Sep 2002
Posts: 184

Rep: Reputation: 30
I strongly suggest a
man chmod
and a
man chown =)
 
Old 04-14-2003, 08:15 PM   #4
cmiwebmaster
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.

HELP!
 
  


Reply


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 01:26 AM
single user mode... navaladi Mandriva 2 12-26-2004 03:41 AM
single user mode ? wr3ck3d Slackware 5 03-29-2003 10:52 AM
HELP!! Problem editing the shadow file in Single user mode natso Linux - Security 2 05-28-2002 04:22 AM
What is single-user mode?? rbanonuevo Linux - Newbie 4 01-28-2002 01:17 PM


All times are GMT -5. The time now is 04:53 PM.

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