LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 09-17-2003, 04:45 AM   #1
guitarnix
Member
 
Registered: Sep 2003
Location: Hawaii
Distribution: Slackware 9.1
Posts: 51

Rep: Reputation: 15
Using Kate editor as root?


Okay, I know it is not good practice to login as root. So I often "su" when I use a terminal program. However, let's say I want to use the "Kate" editor to edit a config file... Is there a way to open the file and make changes in "Kate" as root even though I am logged in as a "regular" user?
 
Old 09-17-2003, 04:55 AM   #2
lynch
Member
 
Registered: Nov 2000
Location: A Mid-Atlantic state
Distribution: SuSE 8.1,Knoppix 3.2,Mandrake 9.1
Posts: 388

Rep: Reputation: 30
Yes you can:[list=1][*]Open an xterm[*]type su -[*]enter root password[*]type kate filename[/list=1]
It works because I just tried it
HTH
lynch
 
Old 09-17-2003, 05:02 AM   #3
guitarnix
Member
 
Registered: Sep 2003
Location: Hawaii
Distribution: Slackware 9.1
Posts: 51

Original Poster
Rep: Reputation: 15
Excellent, thanks for the quick reply!
 
Old 09-18-2003, 05:40 AM   #4
ivanatora
Member
 
Registered: Sep 2003
Location: Bulgaria
Distribution: Ubuntu 9.10, FreeBSD 7.2
Posts: 459

Rep: Reputation: 31
You can also try
su -c "kate filename &"
In that case you'll have to enter root pssd. After you finish your job with kate the super user mode will be terminated, and you'll have a regular user permissions in the console.
 
  


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
Editor for pico and kate (Linux redhat version 9) two_faced_moon Red Hat 0 07-20-2004 06:56 AM
Kate Is Not Working, Kate editor is not starting in Redhat 9 apur Linux - General 4 05-11-2004 10:52 AM
Question on the DCOP interface to KDE Advanced Text Editor (Kate) Laurene Linux - Newbie 0 02-25-2004 02:29 PM
Trouble with Kate (editor) Gerardoj Linux - Software 3 09-25-2003 07:00 PM
Kate (editor) is touching me up alex.e.c Linux - Software 0 09-05-2003 10:52 AM


All times are GMT -5. The time now is 03:52 AM.

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