Download your favorite Linux distribution at LQ ISO.
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 08-22-2004, 05:06 AM   #1
LQ Newbie
Registered: Jul 2004
Location: uk
Posts: 9

Rep: Reputation: 0
Unhappy how to edit /etc/speedtouch.conf

hi, i am having dificulty editing a file in the following place: /etc/speedtouch.conf

all i need to do is edit a line in that file.

but when i open it with kwrite it will not allow me to edit it, i get the following error message:

The document could not be saved, as it was not possible to write to file:/etc/speedtouch.conf.
Check that you have write access to this file or that enough disc space is available.

i am the only user and i am using suse 9.1 pro

please help, how can i edit this file? could it be done in the terminal program?

thx to all in advanced!
Old 08-22-2004, 05:11 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914
Only user or logged in as root?
That's most likely the crucial bit that's missing ;)

You can probably use a variety of editors to do
what you need from a console, just make sure you
su - first. There's nano and pico (reasonably easy to
use) or emacs or vi (powerful but take some training).

Old 08-22-2004, 05:46 AM   #3
LQ Newbie
Registered: Jul 2004
Location: uk
Posts: 9

Original Poster
Rep: Reputation: 0
sorry, i dont understand can you please tell me in detail how to edit the file in the terminal program, i know about the su part, but the rest i dont know, how do i get the file in the terminal prgram? what do i type to get the file in the terminal program? then what do i do? etc etc etc..... thx

or if i can use kwrite how do i make that su???


i am a complete newbie to linux!!!!

Last edited by maltenrazer; 08-22-2004 at 05:49 AM.
Old 08-22-2004, 06:19 AM   #4
LQ Newbie
Registered: Jul 2004
Location: uk
Posts: 9

Original Poster
Rep: Reputation: 0
can some one please help????
Old 08-22-2004, 06:32 AM   #5
Senior Member
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
su -
kwrite /etc/speedtouch.conf &
Old 08-22-2004, 06:32 AM   #6
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,117

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
You are not able to edit the file as it does not "belong" to you.
Open a terminal window and enter the following command:

ls -Al /etc/speedtouch.conf (that's a capital "A" and lowercase "ell")

I get this:

-rw-r--r-- 1 root root 530 Feb 10 2003 /etc/speedtouch.conf

Which tells me the file is owned by "root", and not writeable by others.

So you must be root to edit this file. Type this command:

su root

and give the password.

Now you are root and can edit and save the file. I use vi as my editor, but there are others that are supposed to be easier. To use vi, enter the following command:

vi /etc/speedtouch.conf

The file opens. Use the cursor keys to navigate to where you want to edit.
Press the i key on your keyboard to insert text. Now you may type text and use the backspace and delete keys.
When you have finished editing press Escape key, then colon key ( then w to WRITE the changes, then q to QUIT the editor.
If you mess up just press Escape, :q! to quit without saving changes.

Being "root" is dangerous, you can mess things up big time, so once you have edited the file type the command


You are then back as yourself, a regular user.

Hope this helps.


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
edit a .conf file master Linux - General 7 10-13-2005 06:49 PM
Edit the Grub.conf reply2vinay Linux - Hardware 1 07-26-2005 10:38 AM
Ok so i tried to edit the x11.conf... gbdavidx Slackware 26 11-06-2004 10:58 AM
xorg.conf > how to edit ? visvent Linux - Software 3 06-07-2004 02:14 PM
[SOLVED] How to edit grub.conf filosophem Red Hat 4 02-07-2004 04:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:58 PM.

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
Open Source Consulting | Domain Registration