LinuxQuestions.org
Visit Jeremy's Blog.
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 06-22-2005, 05:27 AM   #1
absalon
LQ Newbie
 
Registered: Jun 2005
Distribution: FC2
Posts: 12

Rep: Reputation: 0
access to read only files


when trying to edit config files in gnome i keep running into permission issues. instead
of switching to kde and managing my files as a superuser how can i gain access
through gnome?

i usually use a simple text editor to edit such files. i tried using emacs but it got
so confusing that i gave up and opened up my file in kwrite.

is there a problem doing this?

what's the benefit of using the various text editors?
 
Old 06-22-2005, 05:40 AM   #2
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
To edit files as root, open a terminal and use su to get root access, then launch your favorite editor to edit the file.
eg.
Code:
me@linux# su
Password: <type the password, you won't see anything>
root@linux# nano /some/file
A few editors:
  • Kate
  • Kwrite
  • gedit
  • emacs
  • nano
  • vi
  • vim
  • pico
  • joe
  • more...

My favorite is emacs, many people like vi, the simplest are nano and pico.
 
Old 06-22-2005, 05:49 AM   #3
ChrisTheGeek
LQ Newbie
 
Registered: Apr 2005
Location: London, UK
Distribution: Ubuntu
Posts: 12

Rep: Reputation: 0
Config files come in two shapes: the first are the global settings in /etc and the second are your personal preferences in /home/<username>.

You are free to edit your personal config files. To see them look in your home directory and show hidden files.

The global settings are owned by root so you need to run your text editor as root. This can be done in gnome with the Run As dialog. If you google a bit, I think there are scripts you can get added to the gnome right-click menu that give you an 'Edit as root' option.

As for text editors, it's entirely down to preference. When doing quick edits of config files I usually use the command line. I go for simplicity and use pico but plenty of people (with gnarled fingers) swear by or at vi.

Hope this helps
 
Old 06-22-2005, 06:05 AM   #4
absalon
LQ Newbie
 
Registered: Jun 2005
Distribution: FC2
Posts: 12

Original Poster
Rep: Reputation: 0
many thanks. all information has helped.

one quick question for chris:

how do i access the "run as" dialog?
 
Old 06-22-2005, 06:31 AM   #5
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
From gnome?? Alt+F2 i think it is?

But typing it in the shell is exactly the same, and doing that with SU is the same as ticking the "run as user -" or whatever box
 
  


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
mozzla problems-can not read files online, can not read attachments sarajevo Linux - Software 1 09-20-2005 06:58 PM
read-only access after a few days jacko1729 Linux - Networking 4 07-27-2005 08:52 AM
read write access phoenix_wolf Linux - Newbie 2 12-05-2004 09:35 AM
How program to read files with extension .dat y .cfg files COMTRADE in fedora 1? ivonne Linux - Software 0 11-22-2004 11:42 AM
read-only access to my own /home files esteeven Linux - General 7 07-16-2004 10:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:59 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
Open Source Consulting | Domain Registration