sidux.com
Menu

News

Give back
Last 3 Contributions
30-11-2008 20.00
25-11-2008 100.00
25-11-2008 20.00

Donate


Sponsor
hetzner.de

Languages
Preferred language:



Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
PaulFXH
Post subject: How to use text editor as root?  PostPosted: Aug 21, 2007 - 01:01 PM



Joined: Aug 21, 2007
Posts: 59

Status: Offline
I installed sidux 2007-3 today and I can't find a way to edit files from a text editor.
So, while I can open Kwrite as a user without problems, I cannot save the resulting file.
If I try overcome this by opening Kwrite as root I get this
Code:
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

kwrite: cannot connect to X server :0.0

How can I get around this?
Thanks
Paul
 
 View user's profile Send private message  
Reply with quote Back to top
vedawalter
Post subject: How to use text editor as root?  PostPosted: Aug 21, 2007 - 01:19 PM



Joined: Dec 01, 2006
Posts: 115
Location: Aachen
Status: Offline
sux
kwrite
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
clubex
Post subject:   PostPosted: Aug 21, 2007 - 01:23 PM



Joined: Dec 04, 2006
Posts: 226
Location: Cumbria, UK
Status: Offline
If you don't like the command line then...

System->More Applications->File Manager-Super User Mode
Login as root
Go to file you want to edit, right click and select open with Kwrite

You should now be able to edit and save Ok.
 
 View user's profile Send private message  
Reply with quote Back to top
PaulFXH
Post subject:   PostPosted: Aug 21, 2007 - 01:29 PM



Joined: Aug 21, 2007
Posts: 59

Status: Offline
Thanks for the prompt replies and fixes for my problem.
.
 
 View user's profile Send private message  
Reply with quote Back to top
severin
Post subject:   PostPosted: Aug 21, 2007 - 01:34 PM



Joined: Dec 04, 2006
Posts: 1238

Status: Offline
BTW: not *all* command line editors are scary. You could try nano or mcedit, for example.
Regarding clubex' hint: I think you can even right click in your *user's* konqueror; IIRC there should be an option "Edit as root" which will prompt you for the password
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
HK-47
Post subject:   PostPosted: Aug 21, 2007 - 01:43 PM



Joined: Dec 02, 2006
Posts: 240

Status: Offline
for text files, you can just right click on the file, got to Actions -> Edit as Root. you might need to install the kdeaddons package to have this option, IIRC.
 
 View user's profile Send private message  
Reply with quote Back to top
EvNu
Post subject:   PostPosted: Aug 21, 2007 - 03:11 PM



Joined: Dec 16, 2006
Posts: 127

Status: Offline
I'd always prefer sux, as you are also able to open any Application that needs root privileges by terminal then.

Greetings, evnu
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
 
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2006-2008 by sidux e.V., 10407 Berlin, Kniprodestr. 104. sidux e.V. is a Berlin, Germany based non-profit foundation. Consult Impressum and Legal Terms for details. sidux™ is Free Software released under the GNU/GPL license and other compatible licenses.
powered by Zikula & Zafenio