LinuxQuestions.org
Help answer threads with 0 replies.
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-03-2005, 01:55 PM   #1
Zoot-88
LQ Newbie
 
Registered: Apr 2005
Location: Hereford
Distribution: Suse
Posts: 10

Rep: Reputation: 0
Editing XF86Config file Read Only!


Greetings,

I am using Vim editor and want to modify the XF86Config file, the only problem is it has the attriubutes set at Read Only.

How can I change the attribute to permit me to edit it and save the changes.

I guess thas is staring me in the face but I am failing, any help would be appreciated




Zoot
 
Old 04-03-2005, 02:02 PM   #2
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Lower Rhine region, Germany
Distribution: Slackware 14.1 (32 and 64 bit)
Posts: 1,594

Rep: Reputation: 124Reputation: 124
You have to be root to edit this file. Type "su" and give in your root password. Then you should be able to edit the configuration file.
 
Old 04-03-2005, 02:04 PM   #3
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 806

Rep: Reputation: 43
You have to be root to do this.
At the prompt enter the command su. Then type in the root password. You will then be able to edit the file. As a general rule, editing anything outside your /home/username directory requires you to be root.

As a self-confessed newbie, are you sure you want to do this with vim? It's not the easiest of editors.
 
Old 04-03-2005, 03:13 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
When you save it, add an exclamation mark after the w. i.e.:

:w!q

to force writing. As the others said, you need to be root.
 
Old 04-04-2005, 09:48 AM   #5
Zoot-88
LQ Newbie
 
Registered: Apr 2005
Location: Hereford
Distribution: Suse
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks to all who responded.

The answer was to use 'su' and login as route.

Your replies was appreciated.

Best Regards

Zoot
 
  


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
need help editing XF86Config file akisunni Linux - Newbie 2 11-09-2004 03:13 AM
Trouble booting up after nvidia drivers install & editing XF86Config-4 file /home/kyle Linux - Software 2 03-12-2004 10:27 PM
Editing Your Xf86config File (how) Abvolt Linux - Newbie 1 07-11-2003 12:58 AM
Editing XF86Config-4 DrOrange Linux - Newbie 1 06-14-2002 07:47 AM
editing xf86config-4 sickels Linux - Newbie 4 07-11-2001 10:47 AM


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