I encounter some difficulties in trying to edit files that require root permission while using Pardus 2009 BETA:
I wanted to edit the file /etc/hosts slightly
.
In Pardus one cannot login as root in the session login window (same as always). In Pardus 2008 I used to edit files that require rootpermission in order to edit in the GUI by just right mouse button clicking upon the file icon and choose the option " edit as root" followed by opening in kwrite.
In the 2009 BETA the "edit as root" option is currentlky missing in the right mouse button menu.
However also when trying to acces the file from the Terminal I do not succeed. As soon as I give myself rootrights/ superuser rights I get an error (listed below)
Kwrite does open from the terminal when you are a regular user, however it gives a bunch of error lines like this
michiel@michiel-pardus ~ $ kwrite
kwrite(1584)/kdecore (KSycoca) KSycocaPrivate::openDatabase: Trying to open ksycoca from "/var/tmp/kde4cache-michiel/ksycoca4"
kwrite(1584)/Kate (Scripting) KateScriptManager::collect: Script value warning: Unknown type (' '): /usr/kde/4/share/apps/katepart/script/sort.js
kwrite(1584)/Kate (Scripting) KateScriptManager::collect: Script value error: No name specified in script meta data: /usr/kde/4/share/apps/katepart/script/jstest.js
kwrite(1584)/Kate (Scripting) KateScriptManager::collect: Script value warning: Unexpected or no priority value in: /usr/kde/4/share/apps/katepart/script/lilypond.js . Setting priority to 0
kwrite(1584)/Kate (Scripting) KateScriptManager::collect: Script value warning: No indent-languages specified for indent script /usr/kde/4/share/apps/katepart/script/python.js . Using the name ( Python )
kwrite(1584)/Kate (Scripting) KateScriptManager::collect: Script value warning: Unexpected or no priority value in: /usr/kde/4/share/apps/katepart/script/python.js . Setting priority to 0
kwrite(1584)/Kate (Scripting) KateScriptManager::collect: Script value warning: No indent-languages specified for indent script /usr/kde/4/share/apps/katepart/script/cstyle.js . Using the name ( C Style )
kwrite(1584)/Kate (Scripting) KateScriptManager::collect: Script value warning: Unexpected or no priority value in: /usr/kde/4/share/apps/katepart/script/cstyle.js . Setting priority to 0
etcetcetc
However as soon as I try to do the same with root/superusers rights, e,g sudo kwrite or first su and then kwrite and filename I get this error:
No protocol specified
kwrite: cannot connect to X server :0.0
I am the type of person that really cannot work with the command line editor vi, I always have to look up which keys and shortcuts are necessary in order to perform a specific action, terrible, but that is personal.
Do more testing people encounter problems when trying to edit files that require root permissions, especially when trying to do so with a graphical user interface textprocessor such as kwrite?
Or must I just use an other text processor application in such cases?
A minor thing: in the 2009 BETA Kwrite application by default I see no buttons to increase or decrease fontsize ( I use these often in 2008), that's a pity.
Any hints?
Does this require a bug report?