LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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
 
LinkBack Search this Thread
Old 04-12-2005, 02:52 AM   #1
rrrssssss
Member
 
Registered: Mar 2005
Posts: 263

Rep: Reputation: 32
Elementary Question - Can't Edit File - Need Root


Hello forum,

I've been away from Linux for several years and have forgotton much of what I once knew.

I need to edit a file in the /etc directory but it will not let me do so since I don't have permission to do so. How can I edit this file?

I know I have to have root priveleges but I forgot how to do so. I am able to go into root using the terminal window (su) but that's all I know.

Thanks in advance,
Roy
 
Old 04-12-2005, 02:56 AM   #2
devil28
LQ Newbie
 
Registered: Jan 2005
Location: berlin
Posts: 14

Rep: Reputation: 0
you could use kdesu, which will give you kde as root or cd in terminal to the file you want to edit.
 
Old 04-12-2005, 03:05 AM   #3
uzairkhan
Member
 
Registered: Apr 2005
Location: Islamabad, Pakistan
Distribution: Mandrake 10.0 & Window XP professional
Posts: 32

Rep: Reputation: 15
Lightbulb

once u have done su and become the root, type

kedit /etc/name of file

This would open up the file in the kedit (only if u have Kedit installed. normally it would be installed if u install KDE.

If u dont have Kedit , u could use some other text editor
or if u have pine installed use

pico /etc/ name of file

or any other text editor, vi, vim , emacs etc.
though i thnink you should go for , kedit , or nedit for now.
emacs /etc/name of file
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Elementary Bash Scripting Question Eternal_Newbie Slackware 2 08-25-2005 06:40 PM
Can't edit /etc/X11/XF86Config file in ANY editor under root! please help Fear58 Mandriva 6 12-12-2004 01:19 AM
how to edit a file without logging in as root? osat3ch Fedora 3 08-21-2004 11:16 PM
cannot edit file as root with write permissions set? Mishley Red Hat 4 08-05-2004 12:23 PM
Elementary IP question Rotwang Linux - Networking 14 03-11-2004 04:44 PM


All times are GMT -5. The time now is 08:42 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration