LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-19-2006, 01:00 AM   #1
eldraque
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
cannot edit fstab in SELinux active mode


I'm not a newbie using Fedora but this is the first time I encountered this problem.

I installed a new hard drive to a FC4 machine. I formatted using FDISK and followed instructions to setup the new hard drive. My last step was to edit /etc/fstab. adding LABEL=....

I messed it up. Now, I'm forced into a SELinux active mode. I can login using ROOT pwd but when I try to modify /etc/fstab, it says that is a read-only file.

My machine doesnt boot any further since this is a problem with file system. Any help is appreciated.

Thanks
 
Old 01-19-2006, 03:38 AM   #2
Thetargos
Senior Member
 
Registered: Mar 2003
Location: Mexico City
Distribution: Fedora, Ubuntu & Mint
Posts: 1,679

Rep: Reputation: 45
You will have to force-write (or change the perms on) the file. If you are using vi as your editor, save with :x! to force it (the file will remain read-only), the other way is to chmod +w the file, edit it (with nano, emacs, vi), save, chmod -w again.
 
  


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
fstab not edit-able? lefty.crupps MEPIS 1 06-06-2005 05:36 PM
How do I edit /etc/fstab? linusownsme Linux - Software 9 03-05-2005 11:30 AM
edit fstab - what i ve to do ? thinkdifferent Linux - Newbie 4 12-23-2003 04:20 PM
edit fstab LinuxOG Linux - Distributions 2 09-01-2003 10:27 AM
How do I change "fstab" to Write/Edit Mode? sharathkv Linux - Newbie 4 07-29-2003 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 03:38 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